Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

How do I zoom to a specific scale programmatically?

$
0
0
Hi,

I modified the CoordinateWidget so that the current scale value of the map is displayed in the lower left corner of the map.

Attachment 29949

However I don't just need to see it, I want the user to be able to specify the scale too.
Which is why I made the scale displayed in a TextInput.

I thought there would be a simple function in the API to let me zoom the map by passing a specific scale, but I didn't find one.
It has to be possible since the API Navigator component (com.esri.ags.components.Navigation) does it with the LODs specified in the config.xml.

Anyone already did something like this?

Thanks
Attached Thumbnails
Click image for larger version

Name:	screenshot.png‎
Views:	N/A
Size:	36.9 KB
ID:	29949  

Viewing all articles
Browse latest Browse all 2097

Trending Articles