Merge pull request #1442 from umap-project/log-tilelayer-error
Log error when loading tilelayer
This commit is contained in:
commit
e251c84298
1 changed files with 1 additions and 0 deletions
|
@ -629,6 +629,7 @@ L.U.Map.include({
|
||||||
this.setZoom(this.selected_tilelayer.options.maxZoom)
|
this.setZoom(this.selected_tilelayer.options.maxZoom)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error(e)
|
||||||
this.removeLayer(tilelayer)
|
this.removeLayer(tilelayer)
|
||||||
this.ui.alert({
|
this.ui.alert({
|
||||||
content: `${L._('Error in the tilelayer URL')}: ${tilelayer._url}`,
|
content: `${L._('Error in the tilelayer URL')}: ${tilelayer._url}`,
|
||||||
|
|
Loading…
Reference in a new issue