Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WmsLayerDirective

Hierarchy

  • WMS
    • WmsLayerDirective

Implements

  • OnDestroy

Index

Constructors

constructor

Properties

addEvent

addEvent: EventEmitter<Event> = new EventEmitter()

clickEvent

clickEvent: EventEmitter<MouseEvent> = new EventEmitter()

contextmenuEvent

contextmenuEvent: EventEmitter<MouseEvent> = new EventEmitter()

dbclickEvent

dbclickEvent: EventEmitter<MouseEvent> = new EventEmitter()

displayChange

displayChange: EventEmitter<boolean> = new EventEmitter()

formatChange

formatChange: EventEmitter<string> = new EventEmitter()

layersChange

layersChange: EventEmitter<string[]> = new EventEmitter()

loadEvent

loadEvent: EventEmitter<Event> = new EventEmitter()

loadingEvent

loadingEvent: EventEmitter<Event> = new EventEmitter()

mousedownEvent

mousedownEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseoutEvent

mouseoutEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseoverEvent

mouseoverEvent: EventEmitter<MouseEvent> = new EventEmitter()

opacityChange

opacityChange: EventEmitter<number> = new EventEmitter()

options

options: WMSOptions

popupcloseEvent

popupcloseEvent: EventEmitter<PopupEvent> = new EventEmitter()

popupopenEvent

popupopenEvent: EventEmitter<PopupEvent> = new EventEmitter()

removeEvent

removeEvent: EventEmitter<Event> = new EventEmitter()

stylesChange

stylesChange: EventEmitter<string[]> = new EventEmitter()

tileerrorEvent

tileerrorEvent: EventEmitter<TileErrorEvent> = new EventEmitter()

tileloadEvent

tileloadEvent: EventEmitter<TileEvent> = new EventEmitter()

tileloadstartEvent

tileloadstartEvent: EventEmitter<TileEvent> = new EventEmitter()

tileunloadEvent

tileunloadEvent: EventEmitter<TileEvent> = new EventEmitter()

tooltipcloseEvent

tooltipcloseEvent: EventEmitter<TooltipEvent> = new EventEmitter()

tooltipopenEvent

tooltipopenEvent: EventEmitter<TooltipEvent> = new EventEmitter()

transparentChange

transparentChange: EventEmitter<boolean> = new EventEmitter()

urlChange

urlChange: EventEmitter<string> = new EventEmitter()

versionChange

versionChange: EventEmitter<string> = new EventEmitter()

wmsParams

wmsParams: WMSParams

zIndexChange

zIndexChange: EventEmitter<number> = new EventEmitter()

Accessors

bounds

  • get bounds(): LatLngBoundsExpression
  • set bounds(val: LatLngBoundsExpression): void

className

  • get className(): string
  • set className(val: string): void

crossOrigin

  • get crossOrigin(): boolean
  • set crossOrigin(val: boolean): void

detectRetina

  • get detectRetina(): boolean
  • set detectRetina(val: boolean): void

display

  • get display(): boolean
  • set display(val: boolean): void

errorTileUrl

  • get errorTileUrl(): string
  • set errorTileUrl(val: string): void

format

  • get format(): string
  • set format(val: string): void

keepBuffer

  • get keepBuffer(): number
  • set keepBuffer(val: number): void

layers

  • get layers(): string[]
  • set layers(val: string[]): void

maxNativeZoom

  • get maxNativeZoom(): number
  • set maxNativeZoom(val: number): void

minNativeZoom

  • get minNativeZoom(): number
  • set minNativeZoom(val: number): void

noWrap

  • get noWrap(): boolean
  • set noWrap(val: boolean): void

opacity

  • get opacity(): number
  • set opacity(val: number): void

styles

  • get styles(): string[]
  • set styles(val: string[]): void

subdomains

  • get subdomains(): string[]
  • set subdomains(val: string[]): void

tileSize

  • get tileSize(): Point
  • set tileSize(val: Point): void

tms

  • get tms(): boolean
  • set tms(val: boolean): void

transparent

  • get transparent(): boolean
  • set transparent(val: boolean): void

updateInterval

  • get updateInterval(): number
  • set updateInterval(val: number): void

updateWhenIdle

  • get updateWhenIdle(): boolean
  • set updateWhenIdle(val: boolean): void

updateWhenZooming

  • get updateWhenZooming(): boolean
  • set updateWhenZooming(val: boolean): void

uppercase

  • get uppercase(): boolean
  • set uppercase(val: boolean): void

url

  • get url(): string
  • set url(val: string): void

version

  • get version(): string
  • set version(val: string): void

zIndex

  • get zIndex(): number
  • set zIndex(val: number): void

zoomOffset

  • get zoomOffset(): number
  • set zoomOffset(val: number): void

zoomReverse

  • get zoomReverse(): boolean
  • set zoomReverse(val: boolean): void

Methods

addEventListener

  • addEventListener(type: string, fn: EventHandlerFn, context?: Object)
  • addEventListener(eventMap: EventHandlerFnMap)
  • Alias for on(...)

    Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Alias for on(...)

    Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

    Parameters

    • eventMap: EventHandlerFnMap

addEventParent

  • addEventParent(obj: Evented)
  • Adds an event parent - an Evented that will receive propagated events

    Parameters

    • obj: Evented

addOneTimeEventListener

  • addOneTimeEventListener(type: string, fn: EventHandlerFn, context?: Object)
  • addOneTimeEventListener(eventMap: EventHandlerFnMap)
  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • eventMap: EventHandlerFnMap

addTo

  • addTo(map: Map)
  • Parameters

    • map: Map

beforeAdd

  • beforeAdd(map: Map)
  • Parameters

    • map: Map

bindPopup

  • bindPopup(content: string, options?: PopupOptions)
  • bindPopup(content: HTMLElement, options?: PopupOptions)
  • bindPopup(content: function, options?: PopupOptions)
  • bindPopup(content: Popup)
  • Parameters

    • content: string
    • Optional options: PopupOptions
  • Parameters

    • content: HTMLElement
    • Optional options: PopupOptions
  • Parameters

    • content: function
        • (layer: Layer): Content
        • Parameters

          • layer: Layer

          Returns Content

    • Optional options: PopupOptions
  • Parameters

    • content: Popup

bindTooltip

  • bindTooltip(content: string, options?: TooltipOptions)
  • bindTooltip(content: HTMLElement, options?: TooltipOptions)
  • bindTooltip(content: function, options?: TooltipOptions)
  • bindTooltip(content: Tooltip, options?: TooltipOptions)
  • Parameters

    • content: string
    • Optional options: TooltipOptions
  • Parameters

    • content: HTMLElement
    • Optional options: TooltipOptions
  • Parameters

    • content: function
        • (layer: Layer): Content
        • Parameters

          • layer: Layer

          Returns Content

    • Optional options: TooltipOptions
  • Parameters

    • content: Tooltip
    • Optional options: TooltipOptions

bringToBack

  • bringToBack()

bringToFront

  • bringToFront()

clearAllEventListeners

  • clearAllEventListeners()
  • Alias for off()

    Removes all listeners to all events on the object.

closePopup

  • closePopup()

closeTooltip

  • closeTooltip()

fire

  • fire(type: string, data?: Object, propagate?: boolean)
  • Fires an event of the specified type. You can optionally provide a data object — the first argument of the listener function will contain its properties. The event might can optionally be propagated to event parents.

    Parameters

    • type: string
    • Optional data: Object
    • Optional propagate: boolean

fireEvent

  • fireEvent(type: string, data?: Object, propagate?: boolean)
  • Alias for fire(...)

    Fires an event of the specified type. You can optionally provide a data object — the first argument of the listener function will contain its properties. The event might can optionally be propagated to event parents.

    Parameters

    • type: string
    • Optional data: Object
    • Optional propagate: boolean

getAttribution

  • getAttribution(): string
  • Returns string

getContainer

  • getContainer(): HTMLElement
  • Returns HTMLElement

getEvents

  • getEvents(): object
  • Returns object

    • [name: string]: function
        • (event: Event): void
        • Parameters

          • event: Event

          Returns void

getPane

  • getPane(name?: string): HTMLElement
  • Parameters

    • Optional name: string

    Returns HTMLElement

getPopup

  • getPopup(): Popup
  • Returns Popup

getTileSize

  • getTileSize(): Point
  • Returns Point

getTooltip

  • getTooltip(): Tooltip
  • Returns Tooltip

hasEventListeners

  • hasEventListeners(type: string): boolean
  • Alias for listens(...)

    Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: string

    Returns boolean

isLoading

  • isLoading(): boolean
  • Returns boolean

isPopupOpen

  • isPopupOpen(): boolean
  • Returns boolean

isTooltipOpen

  • isTooltipOpen(): boolean
  • Returns boolean

listens

  • listens(type: string): boolean
  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: string

    Returns boolean

ngOnDestroy

  • ngOnDestroy(): void

off

  • off(type: string, fn?: EventHandlerFn, context?: Object)
  • off(eventMap: EventHandlerFnMap)
  • off()
  • Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.

    Parameters

    • type: string
    • Optional fn: EventHandlerFn
    • Optional context: Object
  • Removes a set of type/listener pairs.

    Parameters

    • eventMap: EventHandlerFnMap
  • Removes all listeners to all events on the object.

on

  • on(type: string, fn: EventHandlerFn, context?: Object)
  • on(eventMap: EventHandlerFnMap)
  • Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

    Parameters

    • eventMap: EventHandlerFnMap

onAdd

  • onAdd(map: Map)
  • Parameters

    • map: Map

onRemove

  • onRemove(map: Map)
  • Parameters

    • map: Map

once

  • once(type: string, fn: EventHandlerFn, context?: Object)
  • once(eventMap: EventHandlerFnMap)
  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • eventMap: EventHandlerFnMap

openPopup

  • openPopup()
  • openPopup(latlng: LatLng)
  • openPopup(latlng: LatLngLiteral)
  • openPopup(latlng: LatLngTuple)
  • Parameters

    • latlng: LatLng
  • Parameters

    • latlng: LatLngLiteral
  • Parameters

    • latlng: LatLngTuple

openTooltip

  • openTooltip()
  • openTooltip(latlng: LatLng)
  • openTooltip(latlng: LatLngLiteral)
  • openTooltip(latlng: LatLngTuple)
  • Parameters

    • latlng: LatLng
  • Parameters

    • latlng: LatLngLiteral
  • Parameters

    • latlng: LatLngTuple

redraw

  • redraw()

remove

  • remove()

removeEventListener

  • removeEventListener(type: string, fn: EventHandlerFn, context?: Object)
  • removeEventListener(eventMap: EventHandlerFnMap)
  • Alias for off(...)

    Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Alias for off(...)

    Removes a set of type/listener pairs.

    Parameters

    • eventMap: EventHandlerFnMap

removeEventParent

  • removeEventParent(obj: Evented)
  • Removes an event parent, so it will stop receiving propagated events

    Parameters

    • obj: Evented

removeFrom

  • removeFrom(map: Map)
  • Parameters

    • map: Map

setOpacity

  • setOpacity(val: number)

setParams

  • setParams(params: WMSParams, redraw?: boolean)

setPopupContent

  • setPopupContent(content: string)
  • setPopupContent(content: HTMLElement)
  • setPopupContent(content: Popup)
  • Parameters

    • content: string
  • Parameters

    • content: HTMLElement
  • Parameters

    • content: Popup

setTooltipContent

  • setTooltipContent(content: string)
  • setTooltipContent(content: HTMLElement)
  • setTooltipContent(content: Tooltip)
  • Parameters

    • content: string
  • Parameters

    • content: HTMLElement
  • Parameters

    • content: Tooltip

setUrl

  • setUrl(url: string, noRedraw?: boolean)

setZIndex

  • setZIndex(val: number)

togglePopup

  • togglePopup()

toggleTooltip

  • toggleTooltip()

unbindPopup

  • unbindPopup()

unbindTooltip

  • unbindTooltip()

Generated using TypeDoc