Do not display an alert if the map is not created
Refs #713, otherwise that first message is displayed and then override by the map creation one.
This commit is contained in:
parent
cd32b0eb3e
commit
f83a666aa1
1 changed files with 8 additions and 1 deletions
|
@ -704,7 +704,14 @@ L.U.Map.include({
|
|||
this.options.zoom = this.getZoom()
|
||||
this.isDirty = true
|
||||
this._default_extent = false
|
||||
this.ui.alert({ content: L._('The zoom and center have been set.'), level: 'info' })
|
||||
if (this.options.umap_id) {
|
||||
// We do not want an extra message during the map creation
|
||||
// to avoid the double notification/alert.
|
||||
this.ui.alert({
|
||||
content: L._('The zoom and center have been set.'),
|
||||
level: 'info',
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
updateTileLayers: function () {
|
||||
|
|
Loading…
Reference in a new issue