Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LayerItsInventory

Its Layer class

augments

LayerBaseVectorGeoJson

Hierarchy

Index

Constructors

constructor

Properties

Protected _$legendDiv

_$legendDiv: JQuery

Protected _animate

_animate: boolean

Protected _applyCollapseCalled

_applyCollapseCalled: boolean

_autoLoad

_autoLoad: boolean

_geoJsonFormat

_geoJsonFormat: GeoJSON

Protected _id

_id: string

Protected _legendCheckbox

_legendCheckbox: boolean

Protected _legendCollapse

_legendCollapse: boolean

Protected _legendContent

_legendContent: string

Protected _loaded

_loaded: boolean

_mapMove

_mapMove: MapMoveCls

_mapMoveMakeGetParams

_mapMoveMakeGetParams: makeMapMoveParams

_mapMoveParams

_mapMoveParams: any

Protected _maxResolution

_maxResolution: number

Protected _maxZoom

_maxZoom: number

Protected _minResolution

_minResolution: number

Protected _minZoom

_minZoom: number

Protected _name

_name: string

_olLayer

_olLayer: Vector

_onDemand

_onDemand: boolean

_onDemandDelay

_onDemandDelay: number

Protected _opacity

_opacity: number

Protected _params

_params: any

_projection4326

_projection4326: Projection

_projectionMap

_projectionMap: Projection

_source

_source: VectorSource

_style

_style: Style | Array<Style> | iStyleFunc

_transform

_transform: crsTransform

Protected _url

_url: string

Protected _visible

_visible: boolean

Protected _zIndex

_zIndex: number

loadCallback

loadCallback: Function

Accessors

animate

  • get animate(): boolean
  • set animate(animate: boolean): void
  • Returns boolean

  • Parameters

    • animate: boolean

    Returns void

autoLoad

  • get autoLoad(): boolean
  • get if the layer is autoloaded

    Returns boolean

features

  • get features(): Array<Feature>
  • array of ol features

    Returns Array<Feature>

id

  • get id(): string
  • set id(newId: string): void
  • Returns string

  • Parameters

    • newId: string

    Returns void

Protected legendContent

  • get legendContent(): string
  • set legendContent(newVal: string): void
  • get the legend content

    type

    {string}

    Returns string

  • set the legend content directly

    Parameters

    • newVal: string

      new content

    Returns void

loaded

  • get loaded(): boolean
  • Check if the layer is loaded

    type

    {boolean}

    Returns boolean

mapCrs

  • get mapCrs(): string
  • get the map CRS if it is defined by the map move object

    Returns string

mapMove

mapMoveParams

  • get mapMoveParams(): any

mapProj

  • get mapProj(): Projection

maxResolution

  • get maxResolution(): number
  • get the maximum resolution

    type

    {number|*}

    Returns number

maxZoom

  • get maxZoom(): number
  • get max zoom

    type

    {number|*}

    Returns number

minResolution

  • get minResolution(): number
  • get the minimum resolution

    type

    {number|*}

    Returns number

minZoom

  • get minZoom(): number
  • get min zoom

    type

    {number|*}

    Returns number

name

  • get name(): string
  • set name(newName: string): void
  • Get the layer name

    type

    {string}

    Returns string

  • set the layer name

    Parameters

    • newName: string

      the new name

    Returns void

olLayer

  • get olLayer(): Vector

onDemandDelay

  • get onDemandDelay(): number

opacity

  • get opacity(): number
  • set opacity(opacity: number): void
  • Get the layer opacity

    type

    {number}

    Returns number

  • Set the layer opacity

    Parameters

    • opacity: number

      layer opacity

    Returns void

Protected params

  • get params(): object
  • set params(newParams: object): void
  • get the map get params

    type

    {object}

    Returns object

    • [s: string]: any
  • set the map get params

    Parameters

    • newParams: object

      new get params

      • [s: string]: any

    Returns void

source

  • get source(): VectorSource

style

  • get style(): Array<Style> | Style | iStyleFunc
  • set style(style: Style[] | Style | iStyleFunc): void
  • get the style definition

    Returns Array<Style> | Style | iStyleFunc

  • set the style

    Parameters

    • style: Style[] | Style | iStyleFunc

      the style or function

    Returns void

url

  • get url(): string
  • get the url

    type

    {string}

    Returns string

visible

  • get visible(): boolean
  • set visible(visibility: boolean): void

zIndex

  • get zIndex(): number
  • set zIndex(newZ: number): void
  • get the z index

    Returns number

  • set the z index

    Parameters

    • newZ: number

    Returns void

Methods

Private _addLegendContent

  • _addLegendContent(additionalContent?: string): void
  • Parameters

    • Default value additionalContent: string = ""

      additional content to add to legend

    Returns void

Protected _load

  • _load(): boolean

addFeatures

  • addFeatures(featureCollection: any): void

addLegendContent

  • addLegendContent(additionalContent: string): void
  • add additional content to the legend

    Parameters

    • additionalContent: string

    Returns void

applyCollapse

  • applyCollapse(): void

clear

  • clear(): void
  • clear features in the layer

    Returns void

getLegendDiv

  • getLegendDiv(): string
  • Get the legend html, be sure to only add to the DOM once

    Returns string

    html for layer wrapped in a div

Protected getOlLayer

  • getOlLayer(): Layer

Protected getSource

  • getSource(): Source

mapMoveBefore

  • mapMoveBefore(zoom: number, evtType: string): boolean
  • Before call to map move callback, can prevent call by returning false

    Parameters

    • zoom: number

      zoom level

    • evtType: string

    Returns boolean

    if the call should proceed

mapMoveCallback

  • mapMoveCallback(d: Object): void

mapMoveMakeGetParams

  • mapMoveMakeGetParams(extent: object, zoomLevel: number): void
  • callback to generate the parameters passed in the get request

    callback

    makeGetParams

    Parameters

    • extent: object

      extent object

      • maxX: number

        maxX

      • maxY: number

        maxY

      • minX: number

        minX

      • minY: number

        minY

    • zoomLevel: number

      zoom level

    Returns void

refresh

  • refresh(): void
  • trick to refresh the layer

    Returns void

Protected setVisible

  • setVisible(visibility: boolean): void
  • Parameters

    • visibility: boolean

    Returns void

Protected setZIndex

  • setZIndex(newZ: number): void

Generated using TypeDoc