mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
feat(sync): handle syncing of map limitbounds.
This commit is contained in:
parent
9cb87392c0
commit
46207741ff
1 changed files with 8 additions and 0 deletions
|
@ -1448,6 +1448,14 @@ U.Map = L.Map.extend({
|
|||
this.options.limitBounds.north = L.Util.formatNum(bounds.getNorth())
|
||||
this.options.limitBounds.east = L.Util.formatNum(bounds.getEast())
|
||||
boundsBuilder.fetchAll()
|
||||
|
||||
const { subject, metadata, engine } = this.getSyncMetadata()
|
||||
engine.update(
|
||||
subject,
|
||||
metadata,
|
||||
'options.limitBounds',
|
||||
this.options.limitBounds
|
||||
)
|
||||
this.isDirty = true
|
||||
this.handleLimitBounds()
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue