How do I make overlays work with Gmaps V3?

517
1
09-11-2011 03:02 PM
VickyWilson
New Contributor
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/MapSer...", 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 🙂
0 Kudos
1 Reply
timgogl
New Contributor II
here is an example map. i didnt make this one, it is just one i had in my bookmarks from a while back.

http://www.william-map.com/20100702/1/arcgis.htm
0 Kudos