Hierarchy (View Summary)

Constructors

  • Parameters

    Returns Panoramax

    pnx:opened

    pnx:data:clicked

    pnx:data:hovered

    pnx:filter:dates

    pnx:filter:periode

    pnx:filter:type

    var panoramax = new ol.control.Panoramax({
    collapsed: false,
    draggable: true,
    auto: true,
    hover: true,
    position: "top-right",
    layer: {
    url: "https://api.panoramax.xyz/api/map/style.json",
    name: "Panoramax",
    minZoom: 6,
    maxZoom: 21
    },
    background: {
    active: true,
    url: "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/gris.json",
    name: "Background",
    minZoom: 6,
    maxZoom: 21
    },
    buttonsWindow: {
    display: true,
    position: "top-right",
    order: ["filters", "contributions", "hover", "styles", "background"],
    filters: {
    display: true,
    label: "Filtrer",
    description: "Filtrer les images affichées",
    content: {
    dates: true,
    types: true,
    periodes: true
    }
    },
    hover: {
    display: true,
    label: "Aperçu au survol",
    description: "Afficher un aperçu de l'image au survol"
    },
    contributions: {
    display: true,
    label: "Contribuer",
    description: "Accéder au parcours de contribution",
    link: "https://panoramax.openstreetmap.fr/why-contribute"
    },
    styles: {
    display: false,
    label: "Style",
    description: "Personnaliser le style d'affichage des images",
    content: {}
    },
    background: {
    display: true,
    label: "Fond de carte",
    description: "Afficher ou masquer un fond de carte de référence"
    }
    },
    visualizationWindow: {
    display: true,
    position: "top-right",
    size: "medium"
    },
    viewer: {
    endpoint: "https://explore.panoramax.fr/",
    class: "",
    widgets: true,
    psv-options: {}
    }}});
    map.addControl(panoramax);

Properties

auto: undefined | boolean
collapsed: undefined | boolean
container: HTMLElement
description: any
disposed: boolean

The object has already been disposed.

draggable: undefined | boolean
element: HTMLElement
eventActived: undefined | boolean
eventsListeners: any
hover: undefined | boolean
listable: boolean
listenerKeys: EventsKey[]
on: ObjectOnSignature<EventsKey>
once: ObjectOnSignature<EventsKey>
options:
    | undefined
    | {
        auto: boolean;
        background: {
            active: boolean;
            maxZoom: number;
            minZoom: number;
            name: string;
            url: string;
        };
        buttonsWindow: {
            background: { description: string; display: boolean; label: string };
            contributions: {
                description: string;
                display: boolean;
                label: string;
                link: string;
            };
            display: boolean;
            filters: {
                content: { dates: boolean; periodes: boolean; types: boolean };
                description: string;
                display: boolean;
                label: string;
            };
            hover: { description: string; display: boolean; label: string };
            order: string[];
            position: string;
            styles: {
                content: string[];
                description: string;
                display: boolean;
                label: string;
            };
            target: null;
        };
        collapsed: boolean;
        draggable: boolean;
        group: boolean;
        gutter: boolean;
        hover: boolean;
        layer: {
            maxZoom: number;
            minZoom: number;
            name: string;
            source: string;
            url: string;
        };
        panel: boolean;
        position: string;
        viewer: {
            endpoint: string;
            pnxOptions: { class: string; "psv-options": {}; widgets: boolean };
            widgets: string[];
        };
        visualizationWindow: {
            display: boolean;
            position: string;
            size: string;
            target: null;
        };
    }
PANORAMAX_LAYERS_TYPES: undefined | string[]

Types de couches Panoramax disponibles dans le TMS vecteur (https://api.panoramax.xyz/api/map/style.json).

un: ObjectOnSignature<void>

Methods

  • Parameters

    • key: string

      Key name.

    • listener: Listener

      Listener.

    Returns void

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Ajoute un widget personnalisé au viewer de photos de Panoramax.

    Parameters

    • widget: HTMLElement

      Élément du widget à ajouter.

    • container: HTMLElement

      Conteneur dans lequel ajouter le widget (le viewer de photos).

    Returns void

  • Applique les filtres sélectionnés à la couche Panoramax.

    Parameters

    • mapboxLayers: any[]

      format Mapbox Style.

    Returns Promise<any>

    Promise résolue lorsque les filtres sont appliqués.

  • Protected

    Apply any properties from another object without triggering events.

    Parameters

    • source: BaseObject

      The source object.

    Returns void

  • Increases the revision counter and dispatches a 'change' event.

    Returns void

  • Crée et configure le viewer de photos de Panoramax, en ajoutant les widgets spécifiés dans les options.

    Returns null | HTMLElement

    Élément du viewer de photos créé, ou null si le conteneur n'est pas disponible.

  • Crée un composant de légende des photos personnalisé pour le viewer de photos de Panoramax.

    Returns HTMLElement

    Élément du composant de légende des photos.

  • Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

    Parameters

    • event: string | BaseEvent

      Event object.

    Returns undefined | boolean

    false if anyone called preventDefault on the event object or if any of the listeners returned false.

  • Affiche le viewer de photos de Panoramax avec l'image spécifiée par les identifiants de séquence et de photo.

    Parameters

    • sequenceId: string

      Identifiant de la séquence.

    • pictureId: string

      Identifiant de la photo.

    Returns void

  • Clean up.

    Returns void

  • Protected

    Extension point for disposable objects.

    Returns void

  • Gets a value.

    Parameters

    • key: string

      Key name.

    Returns any

    Value.

  • Get a list of object property names.

    Returns string[]

    List of property names.

  • Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.

    Parameters

    • type: string

      Type.

    Returns undefined | Listener[]

    Listeners.

  • Get the map associated with this control.

    Returns null | Map

    Map.

  • Get an object of all property names and values.

    Returns NoInfer<{ [x: string]: any }>

    Object.

  • Get an object of all property names and values.

    Returns null | Partial<NoInfer<{ [x: string]: any }>>

    Object.

  • Get the version number for this object. Each time the object is modified, its version number will be incremented.

    Returns number

    Revision.

  • Parameters

    • Optionaltype: string

      Type. If not provided, true will be returned if this event target has any listeners.

    Returns boolean

    Has listeners.

  • Returns boolean

    The object has properties.

  • Parameters

    • key: string

      Key name.

    • oldValue: any

      Old value.

    Returns void

  • Protected

    Parameters

    • type: string | string[]

      Type.

    • listener: (arg0: Event | BaseEvent) => unknown

      Listener.

    Returns EventsKey | EventsKey[]

    Event key.

  • Protected

    Parameters

    • type: string | string[]

      Type.

    • listener: (arg0: Event | BaseEvent) => unknown

      Listener.

    Returns EventsKey | EventsKey[]

    Event key.

  • Parameters

    • key: string

      Key name.

    • listener: Listener

      Listener.

    Returns void

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Supprime le widget "Picture legend" du viewer de photos de Panoramax On supprime le mode drawer pour le widget de légende des photos

    Returns void

  • Renders the control.

    Parameters

    • mapEvent: MapEvent

      Map event.

    Returns void

  • Sets a value.

    Parameters

    • key: string

      Key name.

    • value: any

      Value.

    • Optionalsilent: boolean

      Update without triggering an event.

    Returns void

  • Affiche ou met à jour la popup de prévisualisation.

    Parameters

    • coordinates: number[]

      Coordonnées [x, y] en projection carte.

    • Optionalcontent: string = ""

      Contenu HTML injecté dans la popup.

    Returns void

  • Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).

    Parameters

    • values: Partial<NoInfer<{ [x: string]: any }>>

      Values.

    • Optionalsilent: boolean

      Update without triggering an event.

    Returns void

  • Applique la taille de fenêtre de visualisation spécifiée dans les options, en ajoutant la classe CSS correspondante au container de la fenêtre de visualisation.

    Parameters

    • size: string

      Taille de la fenêtre de visualisation : "small", "medium", "large", "fullscreen", ou "fullscreen-map".

    Returns void

  • This function is used to set a target element for the control. It has no effect if it is called after the control has been added to the map (i.e. after setMap is called on the control). If no target is set in the options passed to the control constructor and if setTarget is not called then the control is added to the map's overlay container.

    Parameters

    • target: string | HTMLElement

      Target.

    Returns void

  • Protected

    Unlisten for a certain type of event.

    Parameters

    • type: string | string[]

      Type.

    • listener: (arg0: Event | BaseEvent) => unknown

      Listener.

    Returns void

  • Unsets a property.

    Parameters

    • key: string

      Key name.

    • Optionalsilent: boolean

      Unset without triggering an event.

    Returns void

Callbacks

CLICKED_DATA_PANORAMAX_CB: undefined | string

Nom du callback déclenché lors d'un clic sur la couche Panoramax active. pnx:data:clicked

"pnx:data:clicked"

Ce callback est utilisé pour récupérer la première entité touchée au clic (coordonnées et propriétés) sur la couche Panoramax.

HOVERED_DATA_PANORAMAX_CB: undefined | string

Nom du callback déclenché lors du survol de la couche Panoramax active. pnx:data:hovered

"pnx:data:hovered"

Ce callback est utilisé pour récupérer la première entité touchée au survol (coordonnées et propriétés) sur la couche Panoramax.

Events

CLICKED_DATA_PANORAMAX_CB: undefined | string

Nom du callback déclenché lors d'un clic sur la couche Panoramax active. pnx:data:clicked

"pnx:data:clicked"

Ce callback est utilisé pour récupérer la première entité touchée au clic (coordonnées et propriétés) sur la couche Panoramax.

FILTER_DATES_PANORAMAX_EVENT: undefined | string

Nom de l'événement déclenché quand une plage de dates est saisie. pnx:filter:dates

"pnx:filter:dates"
FILTER_INIT_PANORAMAX_EVENT: undefined | string

Événement déclenché à l'initialisation du panneau des filtres. pnx:filter:init

"pnx:filter:init"
FILTER_PERIODE_PANORAMAX_EVENT: undefined | string

Nom de l'événement déclenché quand une période prédéfinie est sélectionnée. pnx:filter:periode

"pnx:filter:periode"
FILTER_RENDER_PANORAMAX_EVENT: undefined | string

Nom de l'événement déclenché quand les filtres sont appliqués. pnx:filter:render

"pnx:filter:render"
FILTER_TYPE_PANORAMAX_EVENT: undefined | string

Nom de l'événement déclenché quand un type d'image est sélectionné. pnx:filter:type

"pnx:filter:type"
HOVERED_DATA_PANORAMAX_CB: undefined | string

Nom du callback déclenché lors du survol de la couche Panoramax active. pnx:data:hovered

"pnx:data:hovered"

Ce callback est utilisé pour récupérer la première entité touchée au survol (coordonnées et propriétés) sur la couche Panoramax.

OPENED_PANORAMAX_EVENT: undefined | string

Événement déclenché à l'ouverture du panneau Panoramax. pnx:opened

"pnx:opened"

Cet événement est émis quand le panneau Panoramax est ouvert. Il indique que le processus Panoramax est démarré. Il peut être utilisé pour déclencher des actions complémentaires.