Insert the code fix right above the "var options = {" in the loadOverview like so:
loadOverview: function(layer) { if (this.control) { this.control.destroy(); } var size = $(this.domObj).getContentBoxSize(); this.oSize = new OpenLayers.Size(size.width, size.height); if (!layer) { layer = this.getMap().oMapOL.baseLayer.clone(); } layer.isBaseLayer = true; layer.ratio = 1.0; if (layer.singleTile) { this.oMapOptions.numZoomLevels = 3; //TODO: make this configurable? } this.mapObject.projection = this.getMap().oMapOL.getProjection() this.mapObject.oLayerOL.projection = this.getMap().oMapOL.getProjection() var options = { div: this.domObj, size: this.oSize, minRatio: this.nMinRatio, maxRatio: this.nMaxRatio, mapOptions: this.oMapOptions, layers: [layer] }; this.control = new OpenLayers.Control.OverviewMap(options); if (size.width == 0 || size.height == 0) { return; //don't try to load if the container is not visible } else { this.getMap().oMapOL.addControl(this.control); this.bDisplayed = true; } //console.log('OverviewMap mapLoaded'); }, Cheers, Kori Maleski On Tue, Mar 30, 2010 at 11:56 PM, Jose Cerrejon <g...@mapas-sll.com> wrote: > > I've tried the fix, but with the last SVN, doesn't works (03/31/2010). This > is the code in the line 110: > > 110 var options = { > 111 div: this.domObj, > 112 size: this.oSize, > 113 minRatio: this.nMinRatio, > 114 maxRatio: this.nMaxRatio, > 115 mapOptions: this.oMapOptions, > 116 layers: [layer] > 117 }; > -- > View this message in context: > http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4829338.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > _______________________________________________ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users >
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users