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 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
Solved! Go to Solution.
Rick,
I know this can be done in javascript:
Show current map extent | ArcGIS API for JavaScript
Look at these samples. They are not exactly what you want but they are a good start.
Rick,
What do you need the rectangle for?
Check out the rectangle on this link: demo the user moves the rectangle around and changes the size to select an area of the map which the user wants a printed copy of.
So when a user fills out the information, you get an email or notification for an area to print?
That's correct, the email contains the longitude, latitude extent for the area of the rectangle.
Rick,
I know this can be done in javascript:
Show current map extent | ArcGIS API for JavaScript
Look at these samples. They are not exactly what you want but they are a good start.
Hey Rickey, thanks for your advice and suggestions. The map is working fine again. It stopped displaying the overylay for about two weeks and now it's showing the overlay and the rectangle again.