I want put OpenLayers controls outside a map but dont know how. I find this example http://openlayers.org/dev/examples/editingtoolbar-outside.html 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.

2 Answers 2


I did not go through that problem yet, but what you are asking maybe similar to this: http://lists.osgeo.org/pipermail/openlayers-users/2007-October/003093.html

regards, Joaquim Muchaxo. Portugal.

  • 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, 2012 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, 2012 at 17:43

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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