forgot to actually used featureId in getFeatureIdFromEvent
This commit is contained in:
@@ -799,7 +799,7 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
|
||||
if (id) {
|
||||
featureId = "OpenLayers.Feature.Vector_" + (id - 1 + this.hitOverflow);
|
||||
try {
|
||||
feature = this.features["OpenLayers.Feature.Vector_" + (id - 1 + this.hitOverflow)][0];
|
||||
feature = this.features[featureId][0];
|
||||
} catch(err) {
|
||||
// Because of antialiasing on the canvas, when the hit location is at a point where the edge of
|
||||
// one symbol intersects the interior of another symbol, a wrong hit color (and therefore id) results.
|
||||
|
||||
Reference in New Issue
Block a user