geopf-extensions-openlayers
    Preparing search index...

    Class SearchEngineAdvanced

    Hierarchy (View Summary)

    Index
    _popupBtns: HTMLDivElement | undefined
    _popupContent: HTMLDivElement | undefined
    _popupDiv: HTMLDivElement | undefined
    _searchForms: AbstractAdvancedSearch[]
    advancedBtn: HTMLButtonElement | undefined
    advancedContainer: HTMLDivElement | undefined
    baseSearchEngine: SearchEngineGeocodeIGN | undefined
    description: any
    disposed: boolean

    The object has already been disposed.

    element: HTMLElement | null
    eraseBtn: HTMLButtonElement | undefined
    geolocation: Geolocation
    layer: VectorLayer<
        VectorSource<Feature<Geometry, { [x: string]: any }>>,
        Feature<Geometry, { [x: string]: any }>,
    >
    listable: boolean
    listenerKeys: EventsKey[]
    listenToClick: boolean | undefined

    Si vrai, écoute les clics sur le document pour gérer la modale de recherche avancée

    locationBtn: HTMLButtonElement | undefined
    on: ObjectOnSignature<EventsKey>
    once: ObjectOnSignature<EventsKey>
    popup: Overlay
    selectGeometry: string | undefined

    Géométrie sélectionnée après une recherche.

    selectInteraction: Select
    un: ObjectOnSignature<void>
    • Ajoute les infos au popup

      Parameters

      • Optionalfeature: Feature<Geometry, { [x: string]: any }>

        Feature à ajouter. Si non fourni

      • Optionalposition: number[]

        Position du popup

      Returns void

    • Parameters

      • key: string

        Key name.

      • listener: Listener

        Listener.

      Returns void

    • Parameters

      • type: string

        Type.

      • listener: Listener

        Listener.

      Returns void

    • 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 un événement de recherche à partir d'un objet (Feature ou Point).

      Parameters

      • obj: any

        Objet à afficher (Feature ou Point)

      • Optionalinfo: string

        Texte affiché dans la popup

      • Optionalcenter: boolean

        Indique si le résultat doit être centré

      Returns any

      Événement normalisé de type "search"

    • Positionne un marker sur la carte.

      Parameters

      • coords: any

        Coordonnées où positionner le marker

      • content: string

        Contenu à afficher dans la popup

      • origin: string

        Origine de la feature

      • center: boolean

        La vue se centre sur la feature ajoutée

      Returns void

    • 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 boolean | undefined

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

    • 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 Listener[] | undefined

      Listeners.

    • Get the map associated with this control.

      Returns Map | null

      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 Partial<NoInfer<{ [x: string]: any }>> | null

      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

    • 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

    • 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<Properties>>

        Values.

      • Optionalsilent: boolean

        Update without triggering an event.

      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