Optional
focalThe distance in meters from the camera at which objects should be perfectly in focus.
200
Optional
focusThe range (in meters) around the focal depth at which objects should be perfectly in focus.
half the noFocusRange if provided, else 200
Optional
noThe threshold in meters around the focal depth at which objects become fully unfocused. Objects between focusRange and noFocusRange are gradually blurred out of focus. NoFocusRange should be larger than focusRange.
twice the focusRange if provided, else 400
Optional
scaleA scale to increase or decrease the blur effect. It does not affect the other properties.
1
A
DepthOfFieldEffect
allows you to apply a Depth of Field effect on a 3D WebGLMap.Depth of Field is an effect that blurs out parts of your map, based on distance to the camera. This mimics the effect of a camera-wide aperture: objects you are focusing on are sharp, while the background is blurred.
This implementation uses the GPU to calculate the effects of depth of field on-the-fly for your active view. You can toggle it on and off, as well as change any of its parameters at any time, with no additional overhead.
Depth of field has two main uses:
WebGLMap
s.Since
2019.0