マップからeditingToolBarを削除できません。このコードが機能しない理由がわかりません:
var editingToolBar = new OpenLayers.Control.Panel({
displayClass: 'customEditingToolbar',
allowDepress: true
});
var draw = new OpenLayers.Control.DrawFeature(
newShape, OpenLayers.Handler.Polygon,
{
title: "Draw Feature",
displayClass: "olControlDrawFeaturePolygon",
multi: true
}
);
var edit = new OpenLayers.Control.ModifyFeature(newShape, {
title: "Modify Feature",
displayClass: "olControlModifyFeature"
});
editingToolBar.addControls([edit, draw]);
map.addControl(editingToolBar);
function stopEditing(){
map.removeControl(editingToolBar);
}
デバッグお疲れ様です!