feat(sync): handle syncing of map limitbounds.

This commit is contained in:
Alexis Métaireau 2024-05-09 18:04:54 +02:00
parent a278b67d5d
commit ef99bf9d86
No known key found for this signature in database
GPG key ID: 1C21B876828E5FF2

View file

@ -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()
},