Editing vectors ############### Editing vectors in OpenLayers is usage of several controls, which are working with particular :class:`OpenLayers.Layer.Vector`. Usually, you want to have a panel with buttons in the map. `OpenLayers.Control.Panel `_ is a control too, see `04_editing.html <../_static/04_editing.html>`_. .. literalinclude:: ../_static/04_editing.html :language: javascript :linenos: :lines: 35-36 .. note:: We have set special class name (attribute `displayClass`) to the control object. This is corresponding with class definition in CSS, so the control is displayed as button in the panel. Editing controls must be bound with particular handlers. .. literalinclude:: ../_static/04_editing.html :language: javascript :linenos: :lines: 39-42 .. note:: :class:`OpenLayers.Control.Panel` has only :meth:`addControls([])` method, you always have to submit list of controls. And add some other editing control to the map as well: .. literalinclude:: ../_static/04_editing.html :language: javascript :linenos: :lines: 44-46