Hi,
There's currently no way to do this using python code. You can do it by
overriding the template to execute "setEditing" on the map:
// editable_layer.html
var map new olwidget.EditableLayer("{{ id }}", {{ options|safe }})
map.setEditing();
best,
Charlie
Oops, you're totally right, my mistake -- "setEditing" is a property of
the editable layer switcher control, not the map. Here's a correct
working version, which is unfortunately rather complex.
var map = new olwidget.EditableMap('id_ubicacion', {
name: 'punto',
...);
// Open up the editing control.
for (var i = 0; i < map.controls.length; i++) {
if (map.controls[i] && map.controls[i].CLASS_NAME ==
"olwidget.EditableLayerSwitcher") {
map.controls[i].setEditing(map.vectorLayers[0]);
break;
}
}
-charlie