google-mapsgoogle-maps-api-3arcgisarcgis-js-apiarcgis-server

Esri Feature Services and Google Maps API v3


Is it possible to overlay an Esri Feature service onto a Google Map using the Google Maps API?

I am using feature services hosted on ArcGIS Online. Keep in mind these are feature services, not tiled map services.

From all that I've gathered, Google Maps only appears to only support tiled map rest services. Is this correct? Has anyone had success overlaying feature services?

If you've made it this far I'll give you a little background. Our systems developer has produced numerous applications using the Google Maps API, so it would be a burden at this point to rewrite everything in OpenLayers, ESRI API, Leaflet, etc. He wants to be able to consume our ArcGIS Online mapping services, which we store as features, aka. WFS. We really do not want to go the route of having to upkeep additional versions (tiles, KML, geoJSON, etc) of the same layers. I've been experimenting with on-the-fly Esri JSON to GeoJSON conversions, but I haven't had success. I'm about ready to call it and rebuild everything with the Esri API, but I figured I'd ask first. Our staff is really in love with Google Maps so it's going to be a hard sell.

Thanks


Solution

  • Ok. You can convert to GeoJSON, but you're right, there's some big performance issues. I found the easiest solution to the problem was to rewrite all our Google Maps API using ESRI Leaflet. https://esri.github.io/esri-leaflet/ Leaflet is much easier to implement than the standard ESRI API. Didn't take long to rewrite and have the same functionality.