add modify feature control to mobile drawing example

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11833 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2011-03-31 11:28:11 +00:00
parent 07f4ad8354
commit 7963fb6a7f
3 changed files with 11 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ OpenLayers/Control/ZoomPanel.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Control/DrawFeature.js
OpenLayers/Control/ModifyFeature.js
OpenLayers/Control/Panel.js
OpenLayers/Handler/Point.js
OpenLayers/Handler/Path.js

View File

@@ -55,6 +55,12 @@
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
display: none;
}
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
background-position: -1px -1px;
}
.olControlEditingToolbar .olControlModifyFeatureItemActive {
background-position: -1px -24px;
}
#title, #tags, #shortdesc {
display: none;
}

View File

@@ -20,6 +20,10 @@ function init() {
new OpenLayers.Control({
displayClass: 'olControlNavigation'
}),
new OpenLayers.Control.ModifyFeature(vector, {
vertexRenderIntent: 'temporary',
displayClass: 'olControlModifyFeature'
}),
new OpenLayers.Control.DrawFeature(vector, OpenLayers.Handler.Point, {
displayClass: 'olControlDrawFeaturePoint'
}),