Merge pull request #1442 from umap-project/log-tilelayer-error

Log error when loading tilelayer
This commit is contained in:
Yohan Boniface 2023-11-29 18:10:01 +01:00 committed by GitHub
commit e251c84298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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