Constructs a MapViewFog
instance.
The scene used in MapView that contains the map objects.
Returns the current fog status, enabled or disabled.
Allows for disabling the fog, even if it is defined in the theme. Use this property for custom views like the demo app's debug camera. However, if the theme does not define a fog, enabling this property here has no effect.
Sets the fog depending on the @xyzmaps/harp-datasource-protocol#Theme instance provided. This function is called when a theme is loaded. Fog is added only if the theme contains a fog definition with a:
color
property, used to set the fog color.startRatio
property, used to set the start distance of the fog as a ratio of the far
clipping plane distance.Optional
fog: FogUpdates the fog at runtime, depending on the camera.
Optional
viewDistance: numberGenerated using TypeDoc
Manages the fog display in MapView.