forked from MapComplete/MapComplete
Further refactoring
This commit is contained in:
parent
e4a2fd1daf
commit
7a7b34b0fa
17 changed files with 350 additions and 297 deletions
|
@ -162,7 +162,7 @@ export class UpdateFromOverpass {
|
|||
return;
|
||||
}
|
||||
|
||||
const bounds = state.bm.map.getBounds();
|
||||
const bounds = state.leafletMap.data.getBounds();
|
||||
|
||||
const diff = state.layoutToUse.data.widenFactor;
|
||||
|
||||
|
@ -196,7 +196,7 @@ export class UpdateFromOverpass {
|
|||
return false;
|
||||
}
|
||||
|
||||
const b = state.bm.map.getBounds();
|
||||
const b = state.leafletMap.data.getBounds();
|
||||
return b.getSouth() >= bounds.south &&
|
||||
b.getNorth() <= bounds.north &&
|
||||
b.getEast() <= bounds.east &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue