VFog

Fog Class.

<v-fog
  :color="color"
  :horizon-blend="horizon-blend"
  :range="range"
/>

With Fog

Property

propertyrequiredtypedescription
colorfalsestringThe color of the atmosphere region immediately below the horizon, default to #ffffff
high-colorfalsestringThe color of the atmosphere region above the horizon, default to #245cdf
space-colorfalsestringThe color of the region above the horizon and after the end of the horizon-blend contribution, default to ["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"]
horizon-blendfalsenumberHorizon blend applies a smooth fade from the color of the atmosphere to the color of space, default to ["interpolate",["linear"],["zoom"],4,0.2,7,0.1]
rangefalsenumber[]The start and end distance range in which fog fades from fully transparent to fully opaque. default to [0.5,10]
star-intensityfalsenumberA value controlling the star intensity where 0 will show no stars and 1 will show stars at their maximum intensity. default to ["interpolate",["linear"],["zoom"],5,0.35,6,0]

for more details you can access to mapbox website, go toopen in new window

Last Updated:
Contributors: timeroute