fires event when point added

This commit is contained in:
Francisco Dans 2016-01-18 10:29:44 +01:00
parent 01b30d18ca
commit 40044e5448

View File

@ -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});
}
}
}