[OpenLayers-Commits] r11833 - in trunk/openlayers: build examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Mar 31 07:28:11 EDT 2011
Author: fredj
Date: 2011-03-31 04:28:11 -0700 (Thu, 31 Mar 2011)
New Revision: 11833
Modified:
trunk/openlayers/build/mobile.cfg
trunk/openlayers/examples/mobile-drawing.html
trunk/openlayers/examples/mobile-drawing.js
Log:
add modify feature control to mobile drawing example
Modified: trunk/openlayers/build/mobile.cfg
===================================================================
--- trunk/openlayers/build/mobile.cfg 2011-03-31 11:22:15 UTC (rev 11832)
+++ trunk/openlayers/build/mobile.cfg 2011-03-31 11:28:11 UTC (rev 11833)
@@ -15,6 +15,7 @@
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
Modified: trunk/openlayers/examples/mobile-drawing.html
===================================================================
--- trunk/openlayers/examples/mobile-drawing.html 2011-03-31 11:22:15 UTC (rev 11832)
+++ trunk/openlayers/examples/mobile-drawing.html 2011-03-31 11:28:11 UTC (rev 11833)
@@ -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;
}
Modified: trunk/openlayers/examples/mobile-drawing.js
===================================================================
--- trunk/openlayers/examples/mobile-drawing.js 2011-03-31 11:22:15 UTC (rev 11832)
+++ trunk/openlayers/examples/mobile-drawing.js 2011-03-31 11:28:11 UTC (rev 11833)
@@ -20,6 +20,10 @@
new OpenLayers.Control({
displayClass: 'olControlNavigation'
}),
+ new OpenLayers.Control.ModifyFeature(vector, {
+ vertexRenderIntent: 'temporary',
+ displayClass: 'olControlModifyFeature'
+ }),
new OpenLayers.Control.DrawFeature(vector, OpenLayers.Handler.Point, {
displayClass: 'olControlDrawFeaturePoint'
}),
More information about the Commits
mailing list