This project is read-only.

Assingn Map Zoom to track bar

Aug 31, 2014 at 8:57 PM
Is there any way to assign map zoom levels to a track bar?I know map functions for zoom in and out but can I assign a number of percentage to zoom level of map in case of using a track bar in my application?

Thanks a lot
Sep 1, 2014 at 7:17 AM
Have a look at issue Feature request: Scale Bar on map. The attached file has some code for a scaling combobox. Only problem with that is the fact that I think, that selecting/entering a value doesn't work with lat/lon projections.
Sep 1, 2014 at 10:51 AM
Dear jany_
Thanks a lot for your help.So I have to disable scalebar while projections is on lat/lon?Is there any way to convert it from lat/lon?does it works?
Sep 3, 2014 at 7:07 AM
At the moment you could either disable the scalebar (or simple not use it) while working with lat/lon or if you know how to calculate the viewextent from a scale for lat/lon layers you could modify the scaleto function accordingly. As written in the issue I have no idea how to calculate the viewextent from a scale in lat/lon.