Select to view content in your preferred language

How to convert LatLngBounds from GoogleMaps to Arcgis properties (Extent)?

877
1
02-11-2013 02:06 AM
PG1
by
New Contributor
I have got latLngBounds from Googlemaps

Now I have to use it to display Arcgis map.

Please suggest
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
P111,

   You would use WebMercatorExtent if you are wanting the extent to be in WKID 102100 (esri Basemaps WKID).
First use Googles
 GetNorthEast().lat(), GetNorthEast().lon() and GetSouthWest().lat(),GetSouthWest().lon()

to get the max and min lat and lon values. Then construct your WebMercatorExtent. In the code below I specified the values from the google functions as the inputs for the WebMercatorExtent constructor:

var webExt:WebMercatorExtent= new WebMercatorExtent(GetSouthWest().lon(),GetSouthWest().lat(),GetNorthEast().lon(),GetNorthEast().lat())


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos