LuciadRIA (2026.1.02)
    Preparing search index...

    A DepthOfFieldEffect allows you to apply a Depth of Field effect on a 3D map.

    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.

    Depth Of Field
    Left: Depth of Field disabled, Right: Depth of Field enabled, with focus on the church

    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:

    • Increase the visual quality of your map.
    • Focus on a specific area of your map, so that it draws the attention of a user more effectively.
    Depth of Field only has effect on 3D maps.

      map.effects.depthOfField = {
    focusDistance: 300,
    blurStartDistance: 400
    }

    2019.0

    interface DepthOfFieldEffect {
        blurStartDistance?: number;
        blurStrength?: number;
        focalDepth?: number;
        focusDistance?: number;
        focusRange?: number;
        fullBlurDistance?: number;
        noFocusRange?: number;
        scale?: number;
    }
    blurStartDistance?: number

    The distance in meters from the focus distance within which objects remain perfectly in focus. Beyond this distance, objects gradually blur out of focus.

    half the fullBlurDistance if provided, else 200
    

    2026.1

    blurStrength?: number

    A multiplier to increase or decrease the blur effect. It does not affect the other properties.

    1
    

    2026.1

    focalDepth?: number

    The distance in meters from the camera at which objects should be perfectly in focus.

    200
    

    Use focusDistance instead.

    focusDistance?: number

    The distance in meters from the camera at which objects should be perfectly in focus.

    200
    

    2026.1

    focusRange?: number

    The range (in meters) around the focal depth at which objects should be perfectly in focus.

    half the noFocusRange if provided, else 200
    

    Use blurStartDistance instead.

    fullBlurDistance?: number

    The distance in meters from the focus distance at which objects become fully unfocused. Objects between blurStartDistance and fullBlurDistance are gradually blurred out of focus. fullBlurDistance should be larger than blurStartDistance.

    twice the blurStartDistance if provided, else 400
    

    2026.1

    noFocusRange?: number

    The 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
    

    Use fullBlurDistance instead.

    scale?: number

    A scale to increase or decrease the blur effect. It does not affect the other properties.

    1
    

    Use blurStrength instead.