ThinkGeo.com    |     Documentation    |     Premium Support

Zoom In Issue

Hi,


I am having a strange issue. I have two buttons on my application. One to zoom in and one to zoom out of the map. The zoom out button does what is supposed to do however the zoom in button does nothing and no errors are thrown. Thanks for any suggestions.



Private


 Sub ZoomInToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ZoomInToolStripButton.Click

     WinformsMap1.ZoomIn(20)

     WinformsMap1.Refresh()

End Sub

 


 


Private Sub ZoomOutToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ZoomOutToolStripButton.Click

     WinformsMap1.ZoomOut(20)

     WinformsMap1.Refresh()

End Sub  



Try using higher values for ZoomIn. I have the same issue. However if I use ZoomOut(40) and ZoomIn(60), it works. 
  
 Sasha.

Thanks for the response. That did work however the zoom in and zoom out are now different if then the defaults that happen when you select the left mouse button or the right mouse button. Would be nice to keep it consistent if possible.



Alexander thanks for your sharing.


Kevin, the problem for this is that our default snapping mode is snapped to higher scale value as said by Alexander, you can try to change the snapping mode while it may make the cache system hits badly if you are using it for performance.
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale