[OpenLayers-Users] Raise a feature over other features

Swärd Mårten marten.sward at smhi.se
Fri Jan 18 02:59:40 EST 2008


Hello.
Thanks! As you said, it's not an ideal solution, but it works fine! =) Perhaps a "raise feature-function" would be something to add to a future release?

************************************************************************
Mvh:
Mårten Swärd
Systemutvecklare/Webbutvecklare, ITs
SMHI, Sveriges Meteorologiska och Hydrologiska Institut
Tel: +46 11 495 8469

-----Ursprungligt meddelande-----
Från: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
Skickat: den 17 januari 2008 15:36
Till: Swärd Mårten
Kopia: users at openlayers.org
Ämne: Re: [OpenLayers-Users] Raise a feature over other features

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