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){
|
for(_x = x; _x < xf; _x += this.options.resolution){
|
||||||
var thisValue = this.getValueForPos(_x,_y);
|
var thisValue = this.getValueForPos(_x,_y);
|
||||||
if (thisValue !== null) {
|
if (thisValue !== null) {
|
||||||
|
var xy = this._map.latLngToContainerPoint([bb[0].lat, bb[0].lon]);
|
||||||
values.push({
|
values.push({
|
||||||
x: _x,
|
x: xy.x,
|
||||||
y: _y,
|
y: xy.y,
|
||||||
value: thisValue.value
|
value: thisValue.value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user