arlas-web-components > "components/mapgl/mapgl.component" > MapglComponent

Class: MapglComponent

Hierarchy

MapglComponent

Implements

  • OnInit
  • AfterViewInit
  • OnChanges

Index

Constructors

Properties

Methods

Object literals


Constructors

constructor

new MapglComponent(http: HttpClient, _snackBar: MatSnackBar, translate: TranslateService): MapglComponent

Defined in components/mapgl/mapgl.component.ts:425

Parameters:

Name Type
http HttpClient
_snackBar MatSnackBar
translate TranslateService

Returns: MapglComponent


Properties

FINISH_DRAWING

● FINISH_DRAWING: string = "Double click to finish drawing"

Defined in components/mapgl/mapgl.component.ts:124


basemapStyles

● basemapStyles: BasemapStyle[] = new Array()

Defined in components/mapgl/mapgl.component.ts:178


basemapStylesGroup

● basemapStylesGroup: BasemapStylesGroup

Defined in components/mapgl/mapgl.component.ts:395


boundsToFit

● boundsToFit: Array<Array<number>>

Defined in components/mapgl/mapgl.component.ts:220


currentLat

● currentLat: string

Defined in components/mapgl/mapgl.component.ts:397


currentLng

● currentLng: string

Defined in components/mapgl/mapgl.component.ts:398


dataSources

● dataSources: Set<string>

Defined in components/mapgl/mapgl.component.ts:313


displayCurrentCoordinates

● displayCurrentCoordinates: boolean = false

Defined in components/mapgl/mapgl.component.ts:150


displayLayerSwitcher

● displayLayerSwitcher: boolean = false

Defined in components/mapgl/mapgl.component.ts:140


displayScale

● displayScale: boolean = true

Defined in components/mapgl/mapgl.component.ts:145


dragEndX

● dragEndX: number

Defined in components/mapgl/mapgl.component.ts:414


dragEndY

● dragEndY: number

Defined in components/mapgl/mapgl.component.ts:415


dragStartX

● dragStartX: number

Defined in components/mapgl/mapgl.component.ts:411


dragStartY

● dragStartY: number

Defined in components/mapgl/mapgl.component.ts:410


draw

● draw: any

Defined in components/mapgl/mapgl.component.ts:103


drawButtonEnabled

● drawButtonEnabled: boolean = false

Defined in components/mapgl/mapgl.component.ts:267


drawClickCounter

● drawClickCounter: number = 0

Defined in components/mapgl/mapgl.component.ts:423


drawData

● drawData: object = Object.assign({}, this.emptyData)

Defined in components/mapgl/mapgl.component.ts:261

Type declaration

features: Array<any>

type: string


drawOption

● drawOption: any

Defined in components/mapgl/mapgl.component.ts:255


drawPolygonVerticesLimit

● drawPolygonVerticesLimit: number

Defined in components/mapgl/mapgl.component.ts:273


featureToHightLight

● featureToHightLight: object

Defined in components/mapgl/mapgl.component.ts:236

Type declaration

elementidentifier: ElementIdentifier

isleaving: boolean


featuresToSelect

● featuresToSelect: Array<ElementIdentifier>

Defined in components/mapgl/mapgl.component.ts:244


firstDrawLayer

● firstDrawLayer: string = ""

Defined in components/mapgl/mapgl.component.ts:407


fitBoundsMaxZoom

● fitBoundsMaxZoom: number = 22

Defined in components/mapgl/mapgl.component.ts:231


fitBoundsOffSet

● fitBoundsOffSet: Array<number> = [0, 0]

Defined in components/mapgl/mapgl.component.ts:226


icons

● icons: Array<IconConfig>

Defined in components/mapgl/mapgl.component.ts:331


idFeatureField

● idFeatureField: string

Defined in components/mapgl/mapgl.component.ts:214


initCenter

● initCenter: [number, number] = [2.1972656250000004, 45.706179285330855]

Defined in components/mapgl/mapgl.component.ts:198


initZoom

● initZoom: number = 2

Defined in components/mapgl/mapgl.component.ts:183


isDrawPolyonSelected

● isDrawPolyonSelected: boolean = false

Defined in components/mapgl/mapgl.component.ts:422


layersMap

● layersMap: Map<string, Layer>

Defined in components/mapgl/mapgl.component.ts:394


legendOpen

● legendOpen: boolean = true

Defined in components/mapgl/mapgl.component.ts:105


legendUpdater

● legendUpdater: Subject<Map<string, LegendData>> = new Subject>()

Defined in components/mapgl/mapgl.component.ts:300


legendVisibiltyStatus

● legendVisibiltyStatus: Subject<Map<string, boolean>> = new Subject()

Defined in components/mapgl/mapgl.component.ts:391


map

● map: any

Defined in components/mapgl/mapgl.component.ts:102


mapLayers

● mapLayers: MapLayers

Defined in components/mapgl/mapgl.component.ts:133


mapSources

● mapSources: Array<MapSource>

Defined in components/mapgl/mapgl.component.ts:249


margePanForLoad

● margePanForLoad: number

Defined in components/mapgl/mapgl.component.ts:203


margePanForTest

● margePanForTest: number

Defined in components/mapgl/mapgl.component.ts:209


maxWidthScale

● maxWidthScale: number = 100

Defined in components/mapgl/mapgl.component.ts:160


maxZoom

● maxZoom: number = 22

Defined in components/mapgl/mapgl.component.ts:188


minZoom

● minZoom: number = 0

Defined in components/mapgl/mapgl.component.ts:193


nbPolygonVertice

● nbPolygonVertice: number = 0

Defined in components/mapgl/mapgl.component.ts:401


onAoiChanged

● onAoiChanged: Subject<FeatureCollection> = new Subject()

Defined in components/mapgl/mapgl.component.ts:381


onBasemapChanged

● onBasemapChanged: Subject<boolean> = new Subject()

Defined in components/mapgl/mapgl.component.ts:386


onFeatureClic

● onFeatureClic: EventEmitter<any> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:351


onFeatureOver

● onFeatureOver: EventEmitter<any> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:356


onMapClosed

● onMapClosed: EventEmitter<MapExtend> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:376


onMapLoaded

● onMapLoaded: Subject<boolean> = new Subject()

Defined in components/mapgl/mapgl.component.ts:337


onMove

● onMove: EventEmitter<OnMoveResult> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:344


onPolygonChange

● onPolygonChange: EventEmitter<Array<Object>> = new EventEmitter>()

Defined in components/mapgl/mapgl.component.ts:361


onPolygonError

● onPolygonError: EventEmitter<Object> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:366


onPolygonSelect

● onPolygonSelect: EventEmitter<any> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:371


polygonlabeldata

● polygonlabeldata: object = Object.assign({}, this.emptyData)

Defined in components/mapgl/mapgl.component.ts:402

Type declaration

features: Array<any>

type: string


redrawSource

● redrawSource: Subject<object> = new Subject<{ source: string, data: helpers.Feature[] }>()

Defined in components/mapgl/mapgl.component.ts:292


showLayersList

● showLayersList: boolean = false

Defined in components/mapgl/mapgl.component.ts:393


transformRequest

● transformRequest: TransformRequestFunction

Defined in components/mapgl/mapgl.component.ts:278


unitScale

● unitScale: string = "metric"

Defined in components/mapgl/mapgl.component.ts:165


visibilityStatus

● visibilityStatus: Map<any, any> = new Map()

Defined in components/mapgl/mapgl.component.ts:421


visibilityUpdater

● visibilityUpdater: Subject<Map<string, boolean>> = new Subject()

Defined in components/mapgl/mapgl.component.ts:307


visualisationSetsConfig

● visualisationSetsConfig: Array<VisualisationSetConfig>

Defined in components/mapgl/mapgl.component.ts:320


visualisations

● visualisations: EventEmitter<Set<string>> = new EventEmitter()

Defined in components/mapgl/mapgl.component.ts:346


visualisationsSets

● visualisationsSets: object

Defined in components/mapgl/mapgl.component.ts:322

Type declaration

status: Map<string, boolean>

visualisations: Map<string, Set<string>>


wrapLatLng

● wrapLatLng: boolean = true

Defined in components/mapgl/mapgl.component.ts:155


xMoveRatio

● xMoveRatio: number = 0

Defined in components/mapgl/mapgl.component.ts:418


yMoveRatio

● yMoveRatio: number = 0

Defined in components/mapgl/mapgl.component.ts:419


zoom

● zoom: number

Defined in components/mapgl/mapgl.component.ts:104


zoomStart

● zoomStart: number

Defined in components/mapgl/mapgl.component.ts:420


Methods

addGeoBox

addGeoBox(): void

Defined in components/mapgl/mapgl.component.ts:1179

Returns: void


addVisualisation

addVisualisation(visualisation: VisualisationSetConfig, layers: Array<Layer>, sources: Array<MapSource>): void

Defined in components/mapgl/mapgl.component.ts:483

Parameters:

Name Type Description
visualisation VisualisationSetConfig A visulisation set object to add to the map
layers Array<Layer> List of actual layers that are declared in `visualisation` object
sources Array<MapSource> List of sources that these external `layers` use.

Returns: void


deleteSelectedItem

deleteSelectedItem(): void

Defined in components/mapgl/mapgl.component.ts:1269

Returns: void


drop

drop(event: CdkDragDrop<string[]>): void

Defined in components/mapgl/mapgl.component.ts:524

Parameters:

Name Type
event CdkDragDrop<string[]>

Returns: void


dropLayer

dropLayer(event: CdkDragDrop<string[]>, visuName: string): void

Defined in components/mapgl/mapgl.component.ts:530

Parameters:

Name Type
event CdkDragDrop<string[]>
visuName string

Returns: void


emitLegendVisibility

emitLegendVisibility(visualisation: string, l: string, visible: boolean): void

Defined in components/mapgl/mapgl.component.ts:436

Parameters:

Name Type Description
visualisation string visualisation set name
l string layer id
visible boolean whether the layer is enabled and visible in the visualisation set

Returns: void


emitVisualisations

emitVisualisations(visualisationName: string): void

Defined in components/mapgl/mapgl.component.ts:441

Parameters:

Name Type
visualisationName string

Returns: void


getAllPolygon

getAllPolygon(mode: "wkt" | "geojson"): any

Defined in components/mapgl/mapgl.component.ts:1221

Parameters:

Name Type Description
mode "wkt" "geojson"

Returns: any


getPolygonById

getPolygonById(id: number, mode: "wkt" | "geojson"): any

Defined in components/mapgl/mapgl.component.ts:1251

Parameters:

Name Type
id number
mode "wkt"

Returns: any


getSelectedPolygon

getSelectedPolygon(mode: "wkt" | "geojson"): any

Defined in components/mapgl/mapgl.component.ts:1238

Parameters:

Name Type Description
mode "wkt" "geojson"

Returns: any


handleKeyboardEvent

handleKeyboardEvent(event: KeyboardEvent): void

Defined in components/mapgl/mapgl.component.ts:1282

Parameters:

Name Type
event KeyboardEvent

Returns: void


ngAfterViewInit

ngAfterViewInit(): void

Defined in components/mapgl/mapgl.component.ts:672

Returns: void


ngOnChanges

ngOnChanges(changes: SimpleChanges): void

Defined in components/mapgl/mapgl.component.ts:586

Parameters:

Name Type
changes SimpleChanges

Returns: void


ngOnInit

ngOnInit(): void

Defined in components/mapgl/mapgl.component.ts:521

Returns: void


onChangeBasemapStyle

onChangeBasemapStyle(selectedStyle: BasemapStyle): void

Defined in components/mapgl/mapgl.component.ts:1211

Parameters:

Name Type
selectedStyle BasemapStyle

Returns: void


onChangePolygonDraw

onChangePolygonDraw(): void

Defined in components/mapgl/mapgl.component.ts:1193

Returns: void


openInvalidGeometrySnackBar

openInvalidGeometrySnackBar(): void

Defined in components/mapgl/mapgl.component.ts:509

Returns: void


removeAois

removeAois(): void

Defined in components/mapgl/mapgl.component.ts:1187

Returns: void


reorderLayers

reorderLayers(): void

Defined in components/mapgl/mapgl.component.ts:538

Returns: void


selectFeaturesByCollection

selectFeaturesByCollection(features: Array<ElementIdentifier>, collection: string): void

Defined in components/mapgl/mapgl.component.ts:1289

Parameters:

Name Type
features Array<ElementIdentifier>
collection string

Returns: void


setBaseMapStyle

setBaseMapStyle(style: string | Style): void

Defined in components/mapgl/mapgl.component.ts:633

Parameters:

Name Type
style string

Returns: void


setStyle

setStyle(s: Style, style: string | Style): void

Defined in components/mapgl/mapgl.component.ts:643

Parameters:

Name Type
s Style
style string

Returns: void


switchToDrawMode

switchToDrawMode(): void

Defined in components/mapgl/mapgl.component.ts:1264

Returns: void


updateLayerVisibility

updateLayerVisibility(visibility: Map<string, boolean>): void

Defined in components/mapgl/mapgl.component.ts:504

Parameters:

Name Type Description
visibility Map<string, boolean> Map of layerId, and its visibility status as boolean (true = visible)

Returns: void


<Static> getMapglJsonSchema

getMapglJsonSchema(): Object

Defined in components/mapgl/mapgl.component.ts:517

Returns: Object


Object literals

defaultBasemapStyle

defaultBasemapStyle: object

Defined in components/mapgl/mapgl.component.ts:170

name

● name: string = "Positron Style"

Defined in components/mapgl/mapgl.component.ts:171


styleFile

● styleFile: string = "http://demo.arlas.io:82/styles/positron/style.json"

Defined in components/mapgl/mapgl.component.ts:172



offset

offset: object

Defined in components/mapgl/mapgl.component.ts:285

east

● east: number = 0

Defined in components/mapgl/mapgl.component.ts:286


north

● north: number = 0

Defined in components/mapgl/mapgl.component.ts:286


south

● south: number = 0

Defined in components/mapgl/mapgl.component.ts:286


west

● west: number = 0

Defined in components/mapgl/mapgl.component.ts:286