broadening stroke width in symbol edge hit detection test to lessen sensitivity to browser antialiasing differences

This commit is contained in:
Arjen Kopinga
2012-03-06 15:27:26 +01:00
parent a836224a14
commit 677659df96
+4 -4
View File
@@ -308,8 +308,8 @@
new OpenLayers.Feature.Vector( new OpenLayers.Feature.Vector(
new OpenLayers.Geometry.Point(80, 0), {}, { new OpenLayers.Geometry.Point(80, 0), {}, {
graphicName: "square", graphicName: "square",
pointRadius: 5, pointRadius: 8,
strokeWidth: 3, strokeWidth: 4,
fillColor: "red", fillColor: "red",
fillOpacity: 0.5, fillOpacity: 0.5,
strokeColor: "blue", strokeColor: "blue",
@@ -341,9 +341,9 @@
}, { }, {
msg: "inside symbol", x: 80, y: 0, id: layer.features[3].id msg: "inside symbol", x: 80, y: 0, id: layer.features[3].id
}, { }, {
msg: "outside symbol interior, inside symbol edge", x: 86, y: 6, id: layer.features[3].id msg: "outside symbol interior, inside symbol edge", x: 90, y: 8, id: layer.features[3].id
}, { }, {
msg: "outside symbol", x: 90, y: 0, id: null msg: "outside symbol", x: 94, y: 0, id: null
}]; }];
function px(x, y) { function px(x, y) {