nashipear

How do I make overlays work with Gmaps V3?

Discussion created by nashipear on Sep 11, 2011
Latest reply on Sep 13, 2011 by lowgas
I'm having a spot of bother trying to make an overlay work in Google maps V3. This is my code:

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

Ive changed the addOverlay() part in the instructions to be sertMap() to work with v3, but nothings appearing on the map. Does anyone know what I have done wrong?

Any help would be really appreciated :)

Outcomes