Select to view content in your preferred language

Use a meter value to Set the width of AGSSimpleLineSymbol

777
1
05-24-2013 02:55 PM
DavidMorrison1
Deactivated User
Hi Guys,

I'm trying to set the width of my line symbol in ArcGIS ios but the value that i get from the user is in meters. How do i convert the meter value to its corresponding ios size value? Also, how do i take into account the current zoom level of the map?

Thanks.
0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor
You cannot set the size of symbols in real-world units (meters, miles, etc). The size you specify is deemed to be in screen points. This is by design so that the symbols keep their size even when you zoom in/out of the map.

Hypothetically, if we allowed specifying size in real world units, would you expect symbols to disappear if you zoomed-out far enough. Say the line was 10 meters wide. At a sufficiently low map scale, the 10 meters would be less than a pixel wide and hence invisible.
0 Kudos