[OpenLayers-Commits] r11824 - trunk/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Mar 31 03:59:43 EDT 2011
Author: fredj
Date: 2011-03-31 00:59:42 -0700 (Thu, 31 Mar 2011)
New Revision: 11824
Modified:
trunk/openlayers/examples/mobile-drawing.js
Log:
increase pointRadius size
Modified: trunk/openlayers/examples/mobile-drawing.js
===================================================================
--- trunk/openlayers/examples/mobile-drawing.js 2011-03-31 07:32:58 UTC (rev 11823)
+++ trunk/openlayers/examples/mobile-drawing.js 2011-03-31 07:59:42 UTC (rev 11824)
@@ -1,7 +1,13 @@
function init() {
// create a vector layer for drawing
- var vector = new OpenLayers.Layer.Vector();
+ var vector = new OpenLayers.Layer.Vector('Vector Layer', {
+ styleMap: new OpenLayers.StyleMap({
+ temporary: OpenLayers.Util.applyDefaults({
+ pointRadius: 16
+ }, OpenLayers.Feature.Vector.style.temporary)
+ })
+ });
// OpenLayers' EditingToolbar internally creates a Navigation control, we
// want a TouchNavigation control here so we create our own editing toolbar
@@ -52,4 +58,4 @@
// activate the first control to render the "navigation icon"
// as active
toolbar.controls[0].activate();
-};
+}
More information about the Commits
mailing list