Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to configure the ModifyFeature control to edit features in multiple layers?

share|improve this question
Please accept an answer if it was helpful. – drnextgis Jul 25 '12 at 14:08
@drnextgis, we encourage people to wait for some time before accepting an answer--at least a few days--because alternative replies often emerge. Nobody should be in a rush to accept the first answer they get, but we hope that eventually they will accept some answer if it successfully responds to their question. – whuber Jul 25 '12 at 15:30

In this case you should create ModifyFeature controls for each layer. It is impossible to set multiple layers within one control.

share|improve this answer
What version of OL are you using? In the latest version at this time, ModifyFeature only accepts a single layer. – tubewurm Jul 31 '12 at 15:54
I have the same challenge. I want my user to be able to edit the feature on this drawlayer, but also to allready existing features loaded in another layer. Can I use one panel button to enable the modify controls on all the layers? Or wouldn't that work? – Jeroen Dec 20 '12 at 11:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.