fixed xy position
This commit is contained in:
parent
b46489d8eb
commit
33c79dad0c
@ -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
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user