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

I want put OpenLayers controls outside a map but dont know how. I find this example but its not what i want. I have a button and want to edit my WFS layer by click this button. So i need in

OpenLayers.Control.ModifyFeature(wfs, {
    title: "Modify Feature",
    displayClass: "olControlModifyFeature"

So how to put this in button? And i use a geoext.

share|improve this question

I did not go through that problem yet, but what you are asking maybe similar to this:

regards, Joaquim Muchaxo. Portugal.

share|improve this answer
How can i see in your example control panel putting outside a map. But i want to call OpenLayers.Control.ModifyFeature by click on Extjs button. – Kliver Max Jul 13 '12 at 3:46
Hi I have not used ExtJs to have experience to help you on that, however I can help with OL so maybe if you post more of your code, perhaps I or someone else can help. – muchaxo Jul 13 '12 at 17:43
up vote 1 down vote accepted

Solution :

                         editButton= new Ext.Button({
                                tooltip: "Edit",
                                id: "commit_changes",
                                text: "Edit",
                                hidden: false,
                                handler: function(){
create= new OpenLayers.Control.DrawFeature(myVecLayer,


Something like this. Some controls needed for activate option.

share|improve this answer

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.