Hi,<div><br></div><div>I create an overview map with a gmaps layer, but it doesn't center on the ovmap.. It puts the center of the base layer in the top left of the ovmap instead of putting it in the center of the ov map...</div>
<div><br></div><div>I create the map and ov like this:</div><div><br></div><div><br></div><div><div>var Google_SAT = new OpenLayers.Layer.Google("GMap Sat",</div><div> { type: G_SATELLITE_MAP, numZoomLevels: 20, "sphericalMercator": true }, { isBaseLayer: true });</div>
</div><div><div><br></div><div>var ovMAP = new OpenLayers.Layer.Google("GMap Streets",</div><div> { }, { isBaseLayer: false });</div><div><br></div><div><div>var bounds = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34);</div>
<div><br></div><div> options = {</div><div> projection: new OpenLayers.Projection("EPSG:900913"),</div><div> displayProjection: new OpenLayers.Projection("EPSG:4326"),</div><div> units: "m",</div>
<div> maxResolution: 156543.0339,</div><div> maxExtent: bounds</div><div> };</div><div><br></div><div> map = new OpenLayers.Map('map', options);</div></div></div><div><br></div><div><div>var optionsOV = {</div>
<div> projection: new OpenLayers.Projection("EPSG:4326"),</div><div> units: "m",</div><div> maxResolution: 156543.0339,</div><div> maxExtent: bounds,</div><div> layers: [ovMAP]</div>
<div> };</div><div><br></div><div> var overview = new OpenLayers.Control.OverviewMap(optionsOV);</div><div> map.addControl(overview);</div><div><br></div><div>Does any body can help?</div><div><br></div><div>Thanks!</div>
</div>