From bed011514f2c5dcbdc2b2069f81bca407bba214e Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 20 Mar 2013 05:12:35 +0100 Subject: [PATCH] Increasing point radius for easier touch selection --- examples/mobile-drawing.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/mobile-drawing.js b/examples/mobile-drawing.js index 869880e30d..0d92e7a6e3 100644 --- a/examples/mobile-drawing.js +++ b/examples/mobile-drawing.js @@ -5,7 +5,13 @@ function init() { styleMap: new OpenLayers.StyleMap({ temporary: OpenLayers.Util.applyDefaults({ pointRadius: 16 - }, OpenLayers.Feature.Vector.style.temporary) + }, OpenLayers.Feature.Vector.style.temporary), + 'default': OpenLayers.Util.applyDefaults({ + pointRadius: 16 + }, OpenLayers.Feature.Vector.style['default']), + select: OpenLayers.Util.applyDefaults({ + pointRadius: 16 + }, OpenLayers.Feature.Vector.style.select), }) });