Hi

I'm new with OpenLayers, it came with another software that I'm using. Anyway, I
set the max extent when initiating the map, I have 3 different base layers
installed ( Yahoo, Demis's, and a world borders map ) , my question is, when it
is zoomed to max extent each of the maps appear differently. Yahoo's are pretty
zoomed out, while the rest are one step more zoomed in, which is what I want.
is there a specific setting that I have to use with Yahoo's ?

After switching it to another map, and switching it back to Yahoo, the yahoo map
seemed to be zoomed at the correct level. But if I use the globe icon / refresh
it will be zoomed out again.

Quote, the code: 
var bounds = new OpenLayers.Bounds(108,-45,160,-9);

var map = new OpenLayers.Map('map', { 'maxExtent':bounds, 
'maxResolution':'auto'});
yahooLayer = new OpenLayers.Layer.Yahoo( "Yahoo"); 
map.addLayer(yahooLayer);

...

 if (!map.getCenter()) map.zoomToMaxExtent();
 

I appreciate your help, thanks!

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to