Options
All
  • Public
  • Public/Protected
  • All
Menu

@yotta/alloy-map

Index

Enumerations

Classes

Interfaces

Type aliases

Events

Variables

Functions

Type aliases

AlloyDrawEventHandler

AlloyDrawEventHandler: (result: AlloyDrawEvent) => void

handler for the alloy draw event

Type declaration

Colour

Colour: string | [number, number, number, number]

Wrapper for colour representation, either a string or number array in [r,g,b,a] format

FeatureSelectionChangeEventHandler

FeatureSelectionChangeEventHandler: (event: FeatureSelectionChangeEvent) => void

handler for the feature selection change event

Type declaration

FeaturesAddedEventHandler

FeaturesAddedEventHandler: (event: FeaturesAddedEvent) => void

handler for the layers features added

Type declaration

FeaturesUnderSelectionEventHandler

FeaturesUnderSelectionEventHandler: (event: FeaturesUnderSelectionEvent) => void

handler for the features under selection event

Type declaration

LayersChangeEventHandler

LayersChangeEventHandler: (event: LayersChangeEvent) => void

handler for the layers change event

Type declaration

MapChangeCentreEventHandler

MapChangeCentreEventHandler: (event: MapChangeCentreEvent) => void

handler for the map change centre event

Type declaration

MapChangeZoomEventHandler

MapChangeZoomEventHandler: (event: MapChangeZoomEvent) => void

handler for the map change zoom event

Type declaration

Events

AlloyDrawEvent

AlloyDrawEvent:

event fired when a draw feature has been created/modified/deleted

feature

feature: AlloyDrawFeature | null

last drawn, modified or removed feature

getDrawFeatures

getDrawGeometry

  • getDrawGeometry(): Geometry

FeatureSelectionChangeEvent

FeatureSelectionChangeEvent:

event fired when there is a change in selected features

userEvent

userEvent: boolean

determines if the event was triggered programatically or by a user event e.g. mouse click

features

oldFeatures

FeaturesUnderSelectionEvent

FeaturesUnderSelectionEvent:

event fired when there is a selection event and there are features obscured or underneath the pixel coordinate selected, this allows the ui to respond and suggest them as alternatives

constructor

position

position: AlloyCoordinate

the clicked position that triggered the event

selectedFeature

selectedFeature: AlloyFeature

the feature that was selected as a result of the event

stack

LayersChangeEvent

LayersChangeEvent:

event fired when the map layers are changed

layers

oldLayers

MapChangeCentreEvent

MapChangeCentreEvent:

event fired when the map centre is changed

centre

MapChangeZoomEvent

MapChangeZoomEvent:

event fired when the map zoom level is changed

zoom

zoom: number

the zoom level of the map

Variables

Const featureTypeBboxNew

featureTypeBboxNew: "WGS84BoundingBox" = "WGS84BoundingBox"

Const featureTypeBboxOld

featureTypeBboxOld: "LatLongBoundingBox" = "LatLongBoundingBox"

Const featureTypeEpsg100

featureTypeEpsg100: "SRS" = "SRS"

Const featureTypeEpsg110

featureTypeEpsg110: "DefaultSRS" = "DefaultSRS"

Const featureTypeEpsg200

featureTypeEpsg200: "DefaultCRS" = "DefaultCRS"

Const featureTypeName

featureTypeName: "Name" = "Name"

tag names used in WFS GetCapabilties response FeatureType that are used to get info

Const featureTypeTitle

featureTypeTitle: "Title" = "Title"

Const proj4

proj4: any = (proj4x as any).default

Functions

easeOut

  • easeOut(timing: number): number

tileResponseInterceptor

  • tileResponseInterceptor<T>(response: Response): Promise<T>

Generated using TypeDoc