Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/infrastructure/identify/IdentifyUtils"

Index

Functions

appendToFeatureSetCollection

getDynamicLayerInfos

  • getDynamicLayerInfos(mapService: MapService, layerIds: string[]): DynamicLayerInfo[]
  • Get all the dynamic layer infos from the mapService for the layers which ids are in layerIds.

    Parameters

    • mapService: MapService

      The MapService

    • layerIds: string[]

      The layer ids

    Returns DynamicLayerInfo[]

    An array of DynamicLayerInfo

getIdentifyLayerIds

  • getIdentifyLayerIds(mapService: MapService, layerRestriction: function, geometryTypes?: string[], onlyVisibleLayers?: boolean, onlyVisibleMapServices?: boolean, layersInVisibleScaleRangeOnly?: boolean, layersToInclude?: string[], excludeRasterLayers?: boolean): any[]
  • Takes an Essentials map service object, and figures out all the layers that should be identifiable, and returns a list of layer IDs representing those layers.

    Parameters

    • mapService: MapService

      The MapService associated with the layer.

    • layerRestriction: function
        • (layer: Layer): boolean
        • Parameters

          Returns boolean

    • Optional geometryTypes: string[]

      Geometry types to include in the returned collection.

    • Optional onlyVisibleLayers: boolean

      Only identify the layers that are currently toggled as visible in the Layer List.

    • Optional onlyVisibleMapServices: boolean

      Only identify the mapservices that are currently toggled as visible.

    • Optional layersInVisibleScaleRangeOnly: boolean

      Only identify layers within the visible scale range.

    • Optional layersToInclude: string[]

      If undefined, all layers are included by default. If defined, functions as an array of the layer IDs we want to explictly check to include - any layer ID not listed is not included regardless of other options.

    • Optional excludeRasterLayers: boolean

    Returns any[]

getLayerDefinitions

  • getLayerDefinitions(mapService: MapService, layerIds: string[]): string[]
  • Get all the layer definitions from the mapService for the layers whose ids are in layerIds.

    Parameters

    • mapService: MapService

      The MapService

    • layerIds: string[]

      The layer Ids

    Returns string[]

    An array of layer definitions