ThinkGeo.com    |     Documentation    |     Premium Support

Zoom In Further

Hi,


I have a web application that is showing an image of a factory floor.  I have it all working well with your product except that I'm not able to zoom in far enough for my needs if I have the correct values in the world file.  For example the length and width of the Factory is 100 Meters by 100 Meters and my world file has the correct settings in them, I can see the image but the map control won't let me zoom in very far.


As a work around I took the Width & Height times a 1000 and updated my world file, after that I can zoom in appropriately but my X & Y Coordinates don't display correctly as the are a 1000 times larger than they should be.  Is there any way I can modify the map control to where it can zoom in further?  This would be helpful for displaying small areas like a factory floor.


Thanks!


 



Clint, 
  
 We can easily add more scales to the ZoomBar to make it available to zoom in more. Now the scale of the 20th zoomlevel is 1126:1, we can add 2 like this. 
 
Map1.ClientZoomLevelScales.Add(100);
Map1.ClientZoomLevelScales.Add(50);
 
 In that way, we have 22 scales on the zoombar and the last 2 are 100:1 and 50:1 relatively. 
  
 Thanks, 
  
 Ben

This works great.  However, I want to remove some of the higher zoom levels so have removed the first 14 levels calling the following 14 times:



Map.ClientZoomLevelScales.RemoveAt(0);



Then I added a level between each remaining using:


Map.ClientZoomLevelScales.Insert(#, #####);  // # as apropriate


Finally added two levels as you suggest using the .Add method.


This works fine upon display but it looks like when the page is posted back and I modify the map control, (i.e. add customoverlays)  and redisplay the map, the panzoombar is reset to the original values.  It seems the ClientZoomLevelScales are reset to the original on a page postback?  Is there anyway to change this or do I have to customize them on each post?


Thanks and let me know. 




 Hi Tony, are you using the latest version 3.1.16? It’s a bug in our previous version and has been fixed now. 
  
 Ben