set minimum zoom level to some kilometer

529
1
07-24-2017 03:41 AM
chiragshah4
New Contributor II

How to set minimum zoom level to some kilometer like 150. i know there are one method name

minScale  but don't know what we need to pass in it and what value it will take?

Tags (1)
0 Kudos
1 Reply
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi chirag shah

minScale is expect for double type based on our documentation, I assume you are using 100 Quartz version: ArcGIS Runtime SDK for iOS: AGSMap Class Reference 

if it is 10.2.5 version here is the reference as well: 10.2.5: AGSMapServiceInfo Class Reference 

By default those minScale and maxScale unit is based on your Map/feature server's publish value, for example,

in this sample service, you can search "Units: esriDecimalDegrees" in your browser:

https://sampleserver6.arcgisonline.com/arcgis/rest/services/RedlandsEmergencyVehicles/MapServer

Hope this can help.