mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +00:00
fix(mobile): on a narrow 3D map the flyover controls and grade legend stand as a column of icons on the side, the layer pill keeps the bottom row; and the lint ratchets the last push tipped
This commit is contained in:
@@ -118,10 +118,9 @@ function onStyleFailure(layer: GlLeafletLayer, fail: () => void): void {
|
||||
gl.once('style.load', () => {
|
||||
loaded = true
|
||||
})
|
||||
const onError = (event: { error?: unknown }) => {
|
||||
const onError = () => {
|
||||
if (loaded) return
|
||||
gl.off('error', onError)
|
||||
console.warn('[basemap] the vector style did not load, drawing raster tiles', event.error)
|
||||
fail()
|
||||
}
|
||||
gl.on('error', onError)
|
||||
|
||||
Reference in New Issue
Block a user