pkdash

ArcGIS extension for Google Map

Discussion created by pkdash on Nov 28, 2012
Latest reply on Nov 29, 2012 by pkdash
The sample code provided to use this extension works only to display the google map. The ArcGIS map overlay doesn't work. It seems the extension version 1.6 works for google map api version 2 which is no more available. I changed the sample code to use the google map api version 3 which displays the google map. However, I am getting error at the following statement (esri is not defined):

var dynamicMap = new esri.arcgis.gmaps.DynamicMapServiceLayer
          ("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer",
          null, 0.75, dynmapcallback);

I am using the following scripts:
     <script src="https://maps.googleapis.com/maps/api/js?key=mykey&sensor=false"></script>
    <script src="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6" type="text/javascript" ></script>
    <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.0" type="text/javascript"></script>

Thanks.
PK

Outcomes