Log error when loading tilelayer
I see this message from time to time, but I've no details so I cannot investigate easily. Let's log the error to help.
This commit is contained in:
parent
34e0461ca8
commit
7a78645055
1 changed files with 1 additions and 0 deletions
|
@ -621,6 +621,7 @@ L.U.Map.include({
|
|||
this.setZoom(this.selected_tilelayer.options.maxZoom)
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
this.removeLayer(tilelayer)
|
||||
this.ui.alert({
|
||||
content: `${L._('Error in the tilelayer URL')}: ${tilelayer._url}`,
|
||||
|
|
Loading…
Reference in a new issue