Type alias PlanPluginConfig

PlanPluginConfig: {
    bearing?: string | number;
    buttons?: {
        close?: boolean;
        maximize?: boolean;
        reset?: boolean;
    };
    configureLeaflet?: ((map) => void);
    coordinates?: GpsPosition;
    defaultZoom?: number;
    hotspots?: PlanHotspot[];
    layers?: PlanLayer[];
    pinImage?: string;
    pinSize?: number;
    position?: string | [string, string];
    size?: CssSize;
    spotStyle?: PlanHotspotStyle;
    visibleOnLoad?: boolean;
}

Type declaration

  • Optional bearing?: string | number

    Rotation offset to apply to the central pin

    Default

    0
    
  • Optional buttons?: {
        close?: boolean;
        maximize?: boolean;
        reset?: boolean;
    }

    Configuration of map buttons

    • Optional close?: boolean

      Default

      true
      
    • Optional maximize?: boolean

      Default

      true
      
    • Optional reset?: boolean

      Default

      true
      
  • Optional configureLeaflet?: ((map) => void)
      • (map): void
      • Let you configure Leaflet from scratch

        Parameters

        • map: Map

        Returns void

  • Optional coordinates?: GpsPosition

    GPS position of the current panorama

  • Optional defaultZoom?: number

    Default zoom level

    Default

    15
    
  • Optional hotspots?: PlanHotspot[]

    Points of interest on the map

  • Optional layers?: PlanLayer[]

    Define the available layers

    Default

    OpenStreetMap
    
  • Optional pinImage?: string

    SVG or image URL used for the central pin (must be square)

  • Optional pinSize?: number

    Size of the central pin

    Default

    35
    
  • Optional position?: string | [string, string]

    Position of the map

    Default

    'bottom left'
    
  • Optional size?: CssSize

    Size of the map

    Default

    '300px * 200px'
    
  • Optional spotStyle?: PlanHotspotStyle

    Default style of hotspots

  • Optional visibleOnLoad?: boolean

    Displays the map when loading the first panorama

    Default

    true
    

Generated using TypeDoc