Type Alias TShow3DMapOptionsExperimental

TShow3DMapOptions: {
    bearing?: number;
    debug?: boolean;
    initialFloor?: Floor | string;
    outdoorView?: {
        enabled?: boolean;
        layersHiddenByGeometry?: string[];
        style?: string;
        token?: string;
    };
    pitch?: number;
    shadingAndOutlines?: boolean;
    style?: {
        backgroundAlpha?: number;
        backgroundColor?: string;
        outlines?: boolean;
        shading?: boolean | Shading;
        wallTopColor?: string;
    };
    wallTopColor?: string;
    zoomLevel?: number;
}

Options for showing a 3D map.

Type declaration

  • Optional Experimentalbearing?: number

    The initial bearing of the map, in degrees.

    0
    
  • Optional Experimentaldebug?: boolean

    Enable debug mode to check the visual representation of performance stats.

    false
    
  • Optional ExperimentalinitialFloor?: Floor | string

    First floor to be rendered. By default, floor with the elevation that's closest to 0 is rendered. All floors will be sorted by elevation in ascending order.

  • Optional ExperimentaloutdoorView?: {
        enabled?: boolean;
        layersHiddenByGeometry?: string[];
        style?: string;
        token?: string;
    }

    The outdoor view options.

    • Optionalenabled?: boolean

      Enable or disable the outdoor view.

    • OptionallayersHiddenByGeometry?: string[]

      Layers that should be hidden by geometry. This is useful when you want to hide certain layers when they are below the geometry.

      ['building', 'building-top']
      
    • Optionalstyle?: string

      A url to a style specification conforming to the Maplibre Style Spec.

    • Optionaltoken?: string

      The token is used to fetch outdoor tiles, which will then be rendered.

  • Optional Experimentalpitch?: number

    The initial pitch of the map, in degrees.

    45
    
  • Optional ExperimentalshadingAndOutlines?: boolean

    Enable shading of bottoms of geometry along with outlines to make geometry stand out.

    true
    

    Use style.shading.

  • Optional Experimentalstyle?: {
        backgroundAlpha?: number;
        backgroundColor?: string;
        outlines?: boolean;
        shading?: boolean | Shading;
        wallTopColor?: string;
    }

    Style options for the map.

    • Optional ExperimentalbackgroundAlpha?: number

      Background alpha value. Only relevant if outdoor map is disabled.

    • Optional ExperimentalbackgroundColor?: string

      Background color. Only relevant if outdoor map is disabled.

    • Optional Experimentaloutlines?: boolean

      Set the global outlines for all elements. True will enable outlines, false will disable them.

      true
      
    • Optional Experimentalshading?: boolean | Shading

      Set the global shading for all elements. True will use default values, false will disable shading.

      true
      
    • Optional ExperimentalwallTopColor?: string

      Specify a color for the top of wall geometry.

  • Optional ExperimentalwallTopColor?: string

    Specify a color for the top of wall geometry.

    Use style.wallTopColor.

  • Optional ExperimentalzoomLevel?: number

    The initial zoom level of the map, in mercator zoom levels. If it is not specified, it will default to the level that fits the map bounds.