0
var OsmLayer = new OpenLayers.Layer.OSM({
   isBaseLayer: true
});

_map.addLayer(OsmLayer);

I tried,

_map.layers[0].maxResolution = *some value*;

&

_map.baseLayer.maxResolution = *some value*;

does not work :(

  • The value is set and works for me to control when an overlay is visible. However, unlike when specified in the layer constructor, the corresponding minScale value isn't automatically updated, which might cause unexpected results unless you set both values. – Mike Jan 2 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.