I am getting an error when adding two cached ArcGIS Services to a
Google Map:
Line: 600 Error: 'x' is null or not an object
After the errors appear, the map works just fine. I am just wondering
why I am getting the error?
Thanks in advance,
M
function initialize() {
patchFunction();
gmap = new GMap2(document.getElementById("gmap"));
mapExtension = new esri.arcgis.gmaps.MapExtension(gmap);
var mapOptions = {opacity: 0.75, minResolution:0, maxResolution: 19};
var tiledmap = new esri.arcgis.gmaps.TiledMapServiceLayer("http://
ws4525/ArcGIS/rest/services/test/MapServer", mapOptions, null);
var tiledmap2 = new esri.arcgis.gmaps.TiledMapServiceLayer("http://
server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",
mapOptions, addTiledMap);
var newMapType = new GMapType([ tiledmap2 ], new
GMercatorProjection(20), "ArcGIS Online", { errorMessage:"No data
available", minResolution: 0, maxResolution: 19 });
gmap.addMapType(newMapType);
gOverlays = mapExtension.addToMap(tiledmap);
}
function addTiledMap(gTileLayer) {
gmap.removeMapType(G_NORMAL_MAP);
gmap.removeMapType(G_HYBRID_MAP);
gmap.removeMapType(G_SATELLITE_MAP);
gmap.addControl(new GLargeMapControl());
gmap.addControl(new GMapTypeControl());
gmap.setCenter(new GLatLng(34.055824, -117.19305), 15);
gmap.enableScrollWheelZoom();
}
Message: 'x' is null or not an object
Line: 600
Char: 83
Code: 0
URI: http://maps.gstatic.com/intl/en_ALL/mapfiles/193c/maps2.api/main.js
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.