fires event when point added
This commit is contained in:
parent
01b30d18ca
commit
40044e5448
@ -276,6 +276,7 @@ var Filters = require('./torque_filters');
|
||||
var x = tile.x[posIdx]- (sp.width >> 1) + anchor;
|
||||
var y = tileMax - tile.y[posIdx] + anchor; // flip mercator
|
||||
ctx.drawImage(sp, x, y - (sp.height >> 1));
|
||||
this.fire("pointAdded", {x: pos.x + x, y: pos.y + y, value: c});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user