feat(sync): handle syncing of map limitbounds.

This commit is contained in:
Alexis Métaireau 2024-05-09 18:04:54 +02:00
parent 9cb87392c0
commit 46207741ff

View file

@ -1448,6 +1448,14 @@ U.Map = L.Map.extend({
this.options.limitBounds.north = L.Util.formatNum(bounds.getNorth()) this.options.limitBounds.north = L.Util.formatNum(bounds.getNorth())
this.options.limitBounds.east = L.Util.formatNum(bounds.getEast()) this.options.limitBounds.east = L.Util.formatNum(bounds.getEast())
boundsBuilder.fetchAll() boundsBuilder.fetchAll()
const { subject, metadata, engine } = this.getSyncMetadata()
engine.update(
subject,
metadata,
'options.limitBounds',
this.options.limitBounds
)
this.isDirty = true this.isDirty = true
this.handleLimitBounds() this.handleLimitBounds()
}, },