AnsweredAssumed Answered

ArcGIS map overlay on top of Google Maps stopped working

Question asked by RC123 on May 23, 2016
Latest reply on May 23, 2016 by RC123

The three lines of JavaScript below add a map overlay on top of Google Maps.  It was working fine and suddenly stopped working.  Does anybody have any ideas on how to get this to work?   The reason I am combining Google Maps and ArcGIS is because I need the ArcGIS map but I also need a rectangle which the user can move around and re-size to select an area of the map.  If there is a way to create this type of rectangle with ArcGIS then I don't need to use Google Maps.

 

var url = 'http://www.giscoecache.lrc.gov.on.ca/ArcGIS/rest/services/LIO_Cartographic/LIO_Topographic/MapServer';

var agsType = new gmaps.ags.MapType(url,{name:'ArcGIS', opacity:9.5});

map.overlayMapTypes.insertAt(0, agsType);

 

The ArcGIS map is at this link:  LIO_Cartographic/LIO_Topographic (MapServer)

 

My demo map is at this link (I had to comment out the three lines above to get the rectangle to show:   demo_v6

Outcomes