[OpenLayers-Users] Layer on/off

Christopher Schmidt crschmidt at metacarta.com
Thu Sep 13 08:47:11 EDT 2007


On Thu, Sep 13, 2007 at 04:26:52AM -0700, Prasad Choudhary wrote:
> 
> Hi again,
> 
> I tried as you suggest,  as 
> 
> which is @ http://prasad.choudhary.googlepages.com/markers.html
> but still, not happening, is there some thing i missed out? please correct
> me.

The minResolution of the markers layer is not respecting the value you
passed in. I can't see why this is at the moment, but it seems to be a
bug. When I get time, I'll look into it -- for now, something like this
will work:

  var markers = new OpenLayers.Layer.Markers(
     "Markers",{'minResolution': 0.3515625, 'maxResolution': 1.40625} );
  map.addLayer(markers);
  markers.minResolution = .35;

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list