[OpenLayers-Users] Raise a feature over other features

Christopher Schmidt crschmidt at metacarta.com
Thu Jan 17 09:35:39 EST 2008


On Thu, Jan 17, 2008 at 01:57:37PM +0100, Swärd Mårten wrote:
> Hello folks!
> If I draw a small polygon on the map and then draws a large one on top of it then I can't edit the small one because the larger one "blocks the way".. So my question is, is there any way to raise a feature above the other features and bring it to the front?

layer.removeFeatures(lowerFeature)
layer.addFeatures(lowerFeature)

should put it on top, I think.

(I'm not saying this is a good situation, but it should work.) 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list