fix: Use formatNum
from Leaflet.Util
It was currently looked for in the uMap utils, where it wasn't present.
This commit is contained in:
parent
3764bcfe3e
commit
5aedf51d0c
1 changed files with 4 additions and 4 deletions
|
@ -1399,10 +1399,10 @@ U.Map = L.Map.extend({
|
|||
L._('Use current bounds'),
|
||||
function () {
|
||||
const bounds = this.getBounds()
|
||||
this.options.limitBounds.south = U.Utils.formatNum(bounds.getSouth())
|
||||
this.options.limitBounds.west = U.Utils.formatNum(bounds.getWest())
|
||||
this.options.limitBounds.north = U.Utils.formatNum(bounds.getNorth())
|
||||
this.options.limitBounds.east = U.Utils.formatNum(bounds.getEast())
|
||||
this.options.limitBounds.south = L.Util.formatNum(bounds.getSouth())
|
||||
this.options.limitBounds.west = L.Util.formatNum(bounds.getWest())
|
||||
this.options.limitBounds.north = L.Util.formatNum(bounds.getNorth())
|
||||
this.options.limitBounds.east = L.Util.formatNum(bounds.getEast())
|
||||
boundsBuilder.fetchAll()
|
||||
this.isDirty = true
|
||||
this.handleLimitBounds()
|
||||
|
|
Loading…
Reference in a new issue