Skip to content

Commit

Permalink
Log error when loading tilelayer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yohanboniface committed Nov 29, 2023
1 parent 34e0461 commit 7a78645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions umap/static/umap/js/umap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 7a78645

Please sign in to comment.