Small fix for hit detection on a canvas layer as an illegal feature id might result at a location where the edge of one feature intersects the interior of another. This is due to antialiasing on the hit context canvas which can't be turned off, unfortunately.

This commit is contained in:
Arjen Kopinga
2012-02-22 15:39:31 +01:00
parent d6e28e5ab9
commit 1119146486
3 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -34,14 +34,14 @@ function init(){
var styles = new OpenLayers.StyleMap({
"default": {
graphicName: "${type}",
pointRadius: 10,
pointRadius: 40,
strokeColor: "fuchsia",
strokeWidth: 2,
fillColor: "lime",
fillOpacity: 0.6
},
"select": {
pointRadius: 20,
pointRadius: 50,
fillOpacity: 1,
rotation: 45
}