Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RectangleDirective<T>

Type parameters

  • T

Hierarchy

  • Rectangle
    • RectangleDirective

Implements

  • OnDestroy
  • AfterViewInit

Index

Constructors

constructor

Properties

addEvent

addEvent: EventEmitter<Event> = new EventEmitter()

boundsChange

boundsChange: EventEmitter<LatLngBounds> = new EventEmitter()

classNameChange

classNameChange: EventEmitter<string> = new EventEmitter()

clickEvent

clickEvent: EventEmitter<MouseEvent> = new EventEmitter()

colorChange

colorChange: EventEmitter<string> = new EventEmitter()

contextmenuEvent

contextmenuEvent: EventEmitter<MouseEvent> = new EventEmitter()

dashArrayChange

dashArrayChange: EventEmitter<string> = new EventEmitter()

dashOffsetChange

dashOffsetChange: EventEmitter<string> = new EventEmitter()

dbclickEvent

dbclickEvent: EventEmitter<MouseEvent> = new EventEmitter()

displayChange

displayChange: EventEmitter<boolean> = new EventEmitter()

eastChange

eastChange: EventEmitter<number> = new EventEmitter()

feature

feature: Feature<GeometryObject>

fillChange

fillChange: EventEmitter<boolean> = new EventEmitter()

fillColorChange

fillColorChange: EventEmitter<string> = new EventEmitter()

fillOpacityChange

fillOpacityChange: EventEmitter<number> = new EventEmitter()

fillRuleChange

fillRuleChange: EventEmitter<string> = new EventEmitter()

geoJSONChange

geoJSONChange: EventEmitter<IGenericGeoJSONFeature<Polygon | MultiPolygon, T>> = new EventEmitter()

Private initialized

initialized: boolean = false

latLngsChange

latLngsChange: EventEmitter<LatLng[]> = new EventEmitter()

lineCapChange

lineCapChange: EventEmitter<string> = new EventEmitter()

lineJoinChange

lineJoinChange: EventEmitter<string> = new EventEmitter()

mousedownEvent

mousedownEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseoutEvent

mouseoutEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseoverEvent

mouseoverEvent: EventEmitter<MouseEvent> = new EventEmitter()

northChange

northChange: EventEmitter<number> = new EventEmitter()

opacityChange

opacityChange: EventEmitter<number> = new EventEmitter()

options

options: PolylineOptions

popupDirective

popupDirective: PopupDirective

popupcloseEvent

popupcloseEvent: EventEmitter<PopupEvent> = new EventEmitter()

popupopenEvent

popupopenEvent: EventEmitter<PopupEvent> = new EventEmitter()

removeEvent

removeEvent: EventEmitter<Event> = new EventEmitter()

southChange

southChange: EventEmitter<number> = new EventEmitter()

strokeChange

strokeChange: EventEmitter<boolean> = new EventEmitter()

styleChange

styleChange: EventEmitter<PathOptions> = new EventEmitter()

tooltipDirective

tooltipDirective: TooltipDirective

tooltipcloseEvent

tooltipcloseEvent: EventEmitter<TooltipEvent> = new EventEmitter()

tooltipopenEvent

tooltipopenEvent: EventEmitter<TooltipEvent> = new EventEmitter()

weightChange

weightChange: EventEmitter<number> = new EventEmitter()

westChange

westChange: EventEmitter<number> = new EventEmitter()

Accessors

bounds

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

className

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

color

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

dashArray

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

dashOffset

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

display

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

east

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

fill

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

fillColor

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

fillOpacity

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

fillRule

  • get fillRule(): FillRule
  • set fillRule(val: FillRule): void

geoJSON

  • get geoJSON(): IGenericGeoJSONFeature<Polygon | MultiPolygon, T>
  • set geoJSON(val: IGenericGeoJSONFeature<Polygon | MultiPolygon, T>): void

interactive

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

latLngs

  • get latLngs(): LatLng[] | LatLng[] | LatLng[]
  • set latLngs(val: LatLng[] | LatLng[] | LatLng[]): void

lineCap

  • get lineCap(): LineCapShape
  • set lineCap(val: LineCapShape): void

lineJoin

  • get lineJoin(): LineJoinShape
  • set lineJoin(val: LineJoinShape): void

noClip

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

north

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

opacity

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

properties

  • get properties(): T
  • set properties(val: T): void

smoothFactor

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

south

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

stroke

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

style

  • get style(): PolylineOptions
  • set style(val: PolylineOptions): void

weight

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

west

  • get west(): number
  • set west(val: number): 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

addLatLng

  • addLatLng(val: Object | LatLng | LatLngLiteral | Object | LatLng | LatLngLiteral)
  • Parameters

    • val: Object | LatLng | LatLngLiteral | Object | LatLng | LatLngLiteral

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

getBounds

  • getBounds(): LatLngBounds
  • Returns LatLngBounds

getCenter

  • getCenter(): LatLng
  • Returns LatLng

getElement

  • getElement(): HTMLElement
  • Returns HTMLElement

getEvents

  • getEvents(): object
  • Returns object

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

          • event: Event

          Returns void

getLatLngs

  • getLatLngs(): Array<LatLng>
  • Returns Array<LatLng>

getPane

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

    • Optional name: string

    Returns HTMLElement

getPopup

  • getPopup(): Popup
  • Returns Popup

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

isEmpty

  • isEmpty(): 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

ngAfterViewInit

  • ngAfterViewInit(): void

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

setBounds

  • setBounds(val: LatLngBounds | LatLngBoundsLiteral)

setLatLngs

  • setLatLngs(val: Array<Object | LatLng | LatLngLiteral> | Array<Array<Object | LatLng | LatLngLiteral>> | Array<Array<Array<Object | LatLng | LatLngLiteral>>>)
  • Parameters

    • val: Array<Object | LatLng | LatLngLiteral> | Array<Array<Object | LatLng | LatLngLiteral>> | Array<Array<Array<Object | LatLng | LatLngLiteral>>>

setPopupContent

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

    • content: string
  • Parameters

    • content: HTMLElement
  • Parameters

    • content: Popup

setStyle

  • setStyle(style: PathOptions)

setTooltipContent

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

    • content: string
  • Parameters

    • content: HTMLElement
  • Parameters

    • content: Tooltip

toGeoJSON

  • toGeoJSON(): Feature<Polygon | MultiPolygon>
  • Returns Feature<Polygon | MultiPolygon>

togglePopup

  • togglePopup()

toggleTooltip

  • toggleTooltip()

unbindPopup

  • unbindPopup()

unbindTooltip

  • unbindTooltip()

Generated using TypeDoc