geopf-extensions-openlayers
    Preparing search index...

    Variable GfiUtils

    GfiUtils: {
        displayFeatureInfo: (
            map: Map,
            olCoordinate: Coordinate,
            gfiLayers: any[],
            proxyOptions?: { noProxyDomains?: string[]; proxyUrl?: string },
            autoPanOptions?: {
                autoPan?: boolean;
                autoPanAnimation?: any;
                autoPanMargin?: number;
            },
        ) => void;
        displayInfo: (
            map: Map,
            coords: Coordinate,
            content: string,
            contentType?: string,
            autoPanOptions: {
                autoPan?: any;
                autoPanAnimation?: any;
                autoPanMargin?: number;
            },
        ) => boolean;
        displayVectorFeatureInfo: (
            map: Map,
            olCoordinate: Coordinate,
            olLayers: Layer[],
            autoPanOptions: any,
        ) => boolean;
        features2html: (map: Map, features: Features[]) => HTMLElement;
        getLayerFormat: (l: Layer) => string;
        getPosition: (e: any, map: any) => any;
        layerGetFeatureAtCoordinates: (
            map: Map,
            olLayer: Layer,
            olCoordinate: Coordinate,
        ) => boolean;
        onDisplayFeatureInfo: (e: any, gfiObj: any) => void;
    } = ...

    Type Declaration

    • displayFeatureInfo: (
          map: Map,
          olCoordinate: Coordinate,
          gfiLayers: any[],
          proxyOptions?: { noProxyDomains?: string[]; proxyUrl?: string },
          autoPanOptions?: {
              autoPan?: boolean;
              autoPanAnimation?: any;
              autoPanMargin?: number;
          },
      ) => void

      Method to manage the request of information from a list of layers already added to the map. Among the given list of layers only the visible ones are requested. The priority is given to the upper layer having a feature at the pointed coordinates. If the first (upper) feature encountered is from a vector layer the info popup will display the information of the features from all visible vector layers and located at the specified coordinates.

    • displayInfo: (
          map: Map,
          coords: Coordinate,
          content: string,
          contentType?: string,
          autoPanOptions: {
              autoPan?: any;
              autoPanAnimation?: any;
              autoPanMargin?: number;
          },
      ) => boolean

      Info Popup creation and display

    • displayVectorFeatureInfo: (
          map: Map,
          olCoordinate: Coordinate,
          olLayers: Layer[],
          autoPanOptions: any,
      ) => boolean

      Get information from all the features located at the specified coordinates and belonging to the layers list argument. Those information are gathered and displayed in an info popup.

    • features2html: (map: Map, features: Features[]) => HTMLElement

      Gets HTML content from features array

    • getLayerFormat: (l: Layer) => string

      Return layer format

    • getPosition: (e: any, map: any) => any
    • layerGetFeatureAtCoordinates: (map: Map, olLayer: Layer, olCoordinate: Coordinate) => boolean

      Indicates if there is a feature at the given coordinates for the given layer

    • onDisplayFeatureInfo: (e: any, gfiObj: any) => void