feat(sync): handle syncing of map limitbounds.

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

View file

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