Hey all,
I am trying to export some feature layers from ArcGIS Online for use with the Google Maps API. The most intuitive way to do this seems to be to use GeoJSON multipolygon or polygon objects. I have been able to export my feature layers in GeoJSON format, but they don't seem to translate into usable coordinates for Google Maps.
What I get looks like this:
{"type":"FeatureCollection",
"crs":{"type":"name","properties":{"name":"EPSG:3857"}},
"features":[{"type":"Feature","id":1,
"geometry":{
"type":"Polygon",
"coordinates":[
[
[-10516017,4054040],
[-10490946,4054346],
[-10492475,4076666],
[-10397693,4074220],
[-10392189,4074220],
....etc....,
[-10516017,4054040]
]
]},
"properties":{"FID":1,"TITLE":"UAMS Southwest Region","VISIBLE":1,
"DESCRIPTIO":"Counties Served by UAMS Southwest","IMAGE_URL":" ","IMAGE_LINK":" ","DATE":null,"TYPEID":0}}]}
This object does not show up when integrating it with the Google Maps API. My assumption is that the coordinates here are not in EPSG:3857. Based on other GeoJSON objects I've seen working with the API, these numbers need to look like standard latitude and longitude coordinates. I know it is possible to make this conversion somehow, given only the data in the GeoJSON file. I know this because I've uploaded sample files to this tool: http://converter.mygeodata.eu/. After upload, the feature layer in placed in just the right spot on an OpenStreetMap, and I am told the following information:
Feature type: | Polygon |
| | Feature count: | 1 |
| | Data extent: | Min X: | -10325536 |
| | | Min Y: | 4094705 |
| | | Max X: | -10244207 |
| | | Max Y: | 4165944 |
| | WGS-84 extent: | Min X: | -92.76 |
| | | Min Y: | 34.49 |
| | | Max X: | -92.03 |
| | | Max Y: | 35.02 |
| | Coordinate reference system (CRS): |
| | | Name: | WGS 84 / Pseudo-Mercator |
| | | Code: | EPSG:3857 |
After all that, no matter how I try running it through this tool, all exports retain the Data Extent coordinate system and not the WGS-84 Translations. Does anyone have experience with this or similar situations?
Any feedback is greatly appreciated.