What is the best way to detect whether the http server/CDN serving the PMtiles file is down via an error/event through the PMtiles library? #196
-
Firstly, thanks for creating this. The whole idea of being able to serve a map without a service is great, and saves a lot of headache ! Error stacktrace from console :- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, you are right - any errors aren't surfaced through MapLibre correctly right now. I opened a PR which should let you catch error events in MapLibre when any part of pmtiles loading fails, example: map.on('error', function() {
console.log('A error event occurred.');
}); |
Beta Was this translation helpful? Give feedback.
Hi, you are right - any errors aren't surfaced through MapLibre correctly right now.
I opened a PR which should let you catch error events in MapLibre when any part of pmtiles loading fails, example: