Hi Larry,

Here is what the debugger spits out:

c is undefined
fromPixelToLatLng()main.js (line 600)
Nm()main.js (line 965)
ry()main.js (line 948)
Yw()main.js (line 769)
_1()gmaps?v=1.5 (line 2)
initialize()Edit1.HTML (line 44)
function onload(event) { initialize(); }()1 (line 2)
[Break on this error] pd.prototype=new sj;pd.prototype.fromL...-a))*-
this.zu[b]);return new S(d,b)};

Cheers,

M

On Feb 5, 12:49 pm, "[email protected]" <[email protected]>
wrote:
> On Feb 5, 12:32 pm, MapsRus <[email protected]> wrote:
>
> > 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?
>
> What does your debugger say?  I can't run one on the code you
> posted...
>
>   -- Larry
>
>
>
>
>
> > 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.

Reply via email to