We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7c87a commit a7ece45Copy full SHA for a7ece45
1 file changed
src/components/map/MaplibreMap.vue
@@ -350,6 +350,31 @@ export default {
350
this.handleMapEvents()
351
352
this.map.once('load', () => {
353
+ // https://maplibre.org/maplibre-gl-js/docs/examples/sky-with-fog-and-terrain/
354
+ // https://maplibre.org/maplibre-style-spec/sky/
355
+ this.map.setSky({
356
+ 'sky-color': '#199EF3',
357
+ 'sky-horizon-blend': 0.5,
358
+ 'horizon-color': '#ffffff',
359
+ 'horizon-fog-blend': 0.5,
360
+ 'fog-color': '#0000ff',
361
+ 'fog-ground-blend': 0.5,
362
+ 'atmosphere-blend': 0,
363
+ /*
364
+ 'atmosphere-blend': [
365
+ 'interpolate',
366
+ ['linear'],
367
+ ['zoom'],
368
+ 0,
369
+ 1,
370
+ 10,
371
372
+ 12,
373
374
+ ],
375
+ */
376
+ })
377
+
378
this.loadImages()
379
380
const bounds = this.map.getBounds()
0 commit comments