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:
Yohan Boniface 2023-11-29 15:49:17 +01:00
parent 34e0461ca8
commit 7a78645055

View file

@ -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}`,