Still any idea? I think, that could be ok, if I set projection, cause my
overview map is showing somewhere about 300 km to south-east, so I think,
that it set projection EPSG: 4326 and no EPSG:900913. Here is the part of
code I'm using:

function mapa(){                  
        map = new OpenLayers.Map('jizerky',{
                 controls: [
                   new OpenLayers.Control.Navigation(),
                   new OpenLayers.Control.ScaleLine()],
                   projection: P900913,
                   displayProjection: P4326,
                   units: "m",
                   maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 
20037508,
20037508.34)
        });
                
        gphy = new OpenLayers.Layer.Google("terénní", 
                {type: G_PHYSICAL_MAP, 
                sphericalMercator:true,
                });


map.addLayer(gphy);
map.setCenter(new
OpenLayers.LonLat(15.205078122883185,50.86577799589138).transform(P4326,P900913),
11);

var overview = new OpenLayers.Control.OverviewMap({
        div: document.getElementById('prehledkaContainer'),
        mapOptions: {
                units: "m",
                maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508,
20037508.34)}
                });
map.addControl(overview);
}

I really don't know, what I should try, I'm trying something several days
with no progress. Do you see some mistake in this code??

Thanks, Dan

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/problem-with-overview-map-tp6190056p6196637.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to