broadening stroke width in symbol edge hit detection test to lessen sensitivity to browser antialiasing differences
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user