Select to view content in your preferred language

esri base maps with google maps apis

1131
6
06-28-2011 05:29 AM
AlessioDi_Lorenzo
Emerging Contributor
Hi I'm using the Google Maps API extension, I would like to select also the ESRI basemaps as alternative to the standard Google basemaps. Is it possible?

Thanks
0 Kudos
6 Replies
derekswingley1
Deactivated User
How about moving to the full ArcGIS API for JavaScript and using this sample to get Google Maps in your JS app:  http://gmaps-utility-gis.googlecode.com/svn/tags/gmapslayer/1.0/docs/examples.html
0 Kudos
AlessioDi_Lorenzo
Emerging Contributor
I have already developed a gis template with many functions with the google maps extender. Now it's too complicated to switch on the other apis only for the baselayers 🙂
0 Kudos
HemingZhu
Frequent Contributor
I have already developed a gis template with many functions with the google maps extender. Now it's too complicated to switch on the other apis only for the baselayers 🙂


I don't think you can use basemap gallery on Google Map API. But you can use ESRI base map as ArcGIS Server cached map and add it on the google maps. There are plenty sample on: http://help.arcgis.com/en/webapi/javascript/gmaps/help/google_start.htm
0 Kudos
ShaningYu
Honored Contributor
swingley:
I tried the script but the google maps do not display.  I post a thread at http://forums.arcgis.com/threads/34799-Google-Maps-Not-Display?highlight=google+maps.  Do you know how to fix it?   Thanks.
Shaning
0 Kudos
ShaningYu
Honored Contributor
I have the same goal as digy79.  Looking at ESRI's sample code, it is possible.  However, when I loaded the code and run it loacally, I got problem.  In my test, the associated js file was called correctly.  Hopefully ESRI can provide a good answer for it.
0 Kudos
StephenLead
Honored Contributor
How about moving to the full ArcGIS API for JavaScript and using this sample to get Google Maps in your JS app:  http://gmaps-utility-gis.googlecode.com/svn/tags/gmapslayer/1.0/docs/examples.html


This is the best of both worlds - the attractiveness of Google's base maps, with the functionality of the ArcGIS JS API. Win-win!
0 Kudos