Hi, In the code you passed me, if I put the spherical Mercator to true, it doesn't center correctly.. If I zoom at maximum the center of overview is very near from the "right" center, but if i zoom out.. every time the overviewmap changes the scale, it centers far from the center of base layer.. (if i center newyork in base layer, the overview map, is centered over south africa..)
And if I don't put the sphericalmercator to true, then it centers ok, but again it put the center of the baselayer to the top-left of overviewmap. What i'm doing wrong? Thanks! 2010/2/5 Max Weidemann <[email protected]> > > Hello JuKiM, > > Try this layer as you overview layer. > > var ovMAP = new OpenLayers.Layer.Google("GMap Streets", { > type:G_NORMAL_MAP, > 'sphericalMercator': true, > maxExtent: new OpenLayers.Bounds(-20037508, > -20037508, > 20037508, 20037508.34) > }); > > cheers > Max > -- > View this message in context: > http://n2.nabble.com/Google-Overviewmap-tp4519147p4519507.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
