Mobilize the canvas hit detection exmample.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11887 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-04-07 19:15:45 +00:00
parent 13207d4ea1
commit 32f70d06c2
2 changed files with 10 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ var Rule = OpenLayers.Rule;
var Filter = OpenLayers.Filter;
var style = new OpenLayers.Style({
pointRadius: 10,
strokeWidth: 2,
strokeWidth: 3,
strokeOpacity: 0.7,
strokeColor: "navy",
fillColor: "#ffcc66",
@@ -83,6 +83,6 @@ var map = new OpenLayers.Map({
zoom: 0
});
var select = new OpenLayers.Control.SelectFeature(layer, {hover: true});
var select = new OpenLayers.Control.SelectFeature(layer);
map.addControl(select);
select.activate();