mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
commit
06c2438ff1
1 changed files with 3 additions and 3 deletions
|
@ -1192,7 +1192,7 @@ export default class Umap extends ServerStored {
|
||||||
geometry() {
|
geometry() {
|
||||||
/* Return a GeoJSON geometry Object */
|
/* Return a GeoJSON geometry Object */
|
||||||
const latlng = this._leafletMap.latLng(
|
const latlng = this._leafletMap.latLng(
|
||||||
this._leafletMap.options.center || this._leafletMap.getCenter()
|
this.properties.center || this._leafletMap.getCenter()
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
type: 'Point',
|
type: 'Point',
|
||||||
|
@ -1670,8 +1670,8 @@ export default class Umap extends ServerStored {
|
||||||
}
|
}
|
||||||
|
|
||||||
_setCenterAndZoom() {
|
_setCenterAndZoom() {
|
||||||
this._leafletMap.options.center = this._leafletMap.getCenter()
|
this.properties.center = this._leafletMap.getCenter()
|
||||||
this._leafletMap.options.zoom = this._leafletMap.getZoom()
|
this.properties.zoom = this._leafletMap.getZoom()
|
||||||
this.isDirty = true
|
this.isDirty = true
|
||||||
this._defaultExtent = false
|
this._defaultExtent = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue