[OpenLayers-Users] Hide some markers of a OpenLayers.Layer.Marker

JuKiM rifins at gmail.com
Tue Mar 16 13:32:18 EDT 2010


Yes,

I was doing with a setOpacity(0) or setOpacity(1) and it was the same
effect, but with your tip it worked, too, I was trying to do a
display='none', but it wasn't the good way!
I'll do like you've said..

Thanks!

2010/3/12 helmi <helmi03 at gmail.com>

> have u tried lyr.markers[i].display(false) ?
>
> On Sat, Feb 20, 2010 at 1:43 AM, JuKiM <rifins at gmail.com> wrote:
>
>> Hi,
>>
>> I have a couple of markers in a Marker Layer, and I would like to hide
>> some of them..
>>
>> I've tried to do lyr.markers[i].onScreen=false, or
>> lyr.markers[i].display='none'.. But the markers are still on the map..
>>
>> How can I hide the desired markers?
>>
>> Thanks!!
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100316/d20df1ac/attachment.html


More information about the Users mailing list