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