fixed xy position

This commit is contained in:
javi 2015-11-15 10:06:12 +01:00
parent b46489d8eb
commit 33c79dad0c

View File

@ -649,9 +649,10 @@ L.TorqueLayer = L.CanvasLayer.extend({
for(_x = x; _x < xf; _x += this.options.resolution){
var thisValue = this.getValueForPos(_x,_y);
if (thisValue !== null) {
var xy = this._map.latLngToContainerPoint([bb[0].lat, bb[0].lon]);
values.push({
x: _x,
y: _y,
x: xy.x,
y: xy.y,
value: thisValue.value
})
}