Visible area in meters

4963
0
04-10-2015 03:44 AM
FriedrichMarkgraf
New Contributor

Hi everybody,

I'm stuck trying to get the visible area of an AGSMapView in meters.

The MapView's base layer is an AGSOpenStreetMapLayer, spatial reference WKID 102100.

mapView.visibleAreaEnvelope gets me an AGSEnvelope, which I can query for width and height. I am unsure as to what the unit is for those values.

If I project this envelope onto a spatial reference with WKID 53034, as I've seen suggested in a different post, width changes slightly, but height becomes totally wrong (at least for my chosen example, which is roughly the outer bounds of Berlin, which should be about 44 km wide and 33 high).

To summarize: Are the values I get from AGSMapView -visibleAreaEnvelope width/height in meters, regardless of spatialReference? If not, how can I reliably convert to meters, preferably offline.

0 Kudos
0 Replies