Skip to content

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

Class: MapglComponent

Mapgl Component allows to display and select geometrical data on a map.

Hierarchy

MapglComponent

Implements

  • OnInit
  • AfterViewInit
  • OnChanges

Index

Constructors

Properties

Methods

Object literals


Constructors

constructor

new MapglComponent(http: HttpClient, differs: IterableDiffers): MapglComponent

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

Parameters:

Name Type
http HttpClient
differs IterableDiffers

Returns: MapglComponent


Properties

basemapStyles

● basemapStyles: BasemapStyle[] = new Array()

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

input: : Angular

description: List of styles to apply to the base map


basemapStylesGroup

● basemapStylesGroup: BasemapStylesGroup

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


boundsToFit

● boundsToFit: Array<Array<number>>

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

input: : Angular

description: Bounds that the view map fits. It's an array of two corners. Each corner is an lat-long position : For example : boundsToFit = [[30.51, -54.3],[30.57, -54.2]]


currentLat

● currentLat: string

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


currentLng

● currentLng: string

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


displayCurrentCoordinates

● displayCurrentCoordinates: boolean = false

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

input: : Angular

description: Whether the coordinates are displayed.


displayLayerSwitcher

● displayLayerSwitcher: boolean = false

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

input: : Angular

description: Whether the layer switcher controll is displayed. If not, the map component uses the default style group and with its default style


displayScale

● displayScale: boolean = true

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

input: : Angular

description: Whether the scale is displayed.


draw

● draw: any

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


drawData

● drawData: object = this.emptyData

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

input: : Angular

description: Features drawn at component start

Type declaration

features: Array<any>

type: string


drawEnabled

● drawEnabled: boolean = false

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

input: : Angular

description: Whether the draw tools are activated


drawOption

● drawOption: any

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

input: : Angular

description: Options object for draw tools : https://github.com/mapbox/mapbox-gl-draw/blob/master/docs/API.md#options


drawPolygonVerticesLimit

● drawPolygonVerticesLimit: number

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

input: : Angular

description: Maximum number of vertices allowed for a polygon


featureToHightLight

● featureToHightLight: object

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

input: : Angular

description: Feature to highlight.

Type declaration

elementidentifier: ElementIdentifier

isleaving: boolean


featuresToSelect

● featuresToSelect: Array<ElementIdentifier>

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

input: : Angular

description: List of feature to select.


firstDrawLayer

● firstDrawLayer: string = ""

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


fitBoundsMaxZoom

● fitBoundsMaxZoom: number = 22

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

input: : Angular

description: The maximum zoom level so that the bounds fit the map view.


fitBoundsOffSet

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

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

input: : Angular

description: The padding added in the top-left and bottom-right corners of a map container that shouldn't be accounted for when setting the view to fit bounds.


geoboxdata

● geoboxdata: object = this.emptyData

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

input: : Angular

description: The geobox feature.

Type declaration

features: Array<any>

type: string


geojsondata

● geojsondata: object = this.emptyData

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

input: : Angular

description: The data displayed on map.

Type declaration

features: Array<any>

type: string


idFeatureField

● idFeatureField: string

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

input: : Angular

description: the field name of ids.


initCenter

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

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

input: : Angular

description: Coordinates of the map's centre when it's initialized.


initZoom

● initZoom: number = 2

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

input: : Angular

description: Zoom of the map when it's initialized


map

● map: any

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


mapLayers

● mapLayers: MapLayers

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

input: : Angular

description: List of mapgl layers


mapSources

● mapSources: Array<MapSource>

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

input: : Angular

description: List of mapboxgl sources to add to the map.


margePanForLoad

● margePanForLoad: number

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

input: : Angular

description: Margin applied to the map extent. Data is loaded in all this extent.


margePanForTest

● margePanForTest: number

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

input: : Angular

description: Margin applied to the map extent. Before loading data, the components checks first if there are features already loaded in this extent.


maxWidthScale

● maxWidthScale: number = 100

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

input: : Angular

description: Max width of the scale.


maxZoom

● maxZoom: number = 22

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

input: : Angular

description: Max zoom of the map


minZoom

● minZoom: number = 0

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

input: : Angular

description: Min zoom of the map


nbPolygonVertice

● nbPolygonVertice: number = 0

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


onChangeBbox

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

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

output: : Angular

description: Emits an event at the end of drawing a geobox.


onFeatureClic

● onFeatureClic: EventEmitter<Array<string>> = new EventEmitter>()

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

output: : Angular

description: Emits the event of clicking on a feature.


onFeatureOver

● onFeatureOver: EventEmitter<Array<string>> = new EventEmitter>()

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

output: : Angular

description: Emits the event of hovering feature.


onMapLoaded

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

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

output: : Angular

description: Emits true after the map is loaded and all sources & layers are added.


onMove

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

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

output: : Angular

description: Emits the event of moving the map.


onPolygonChange

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

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

output: : Angular

description: Emit the event of updating the draw polygon


onPolygonError

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

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

output: : Angular

description: Emit the event of invalid geometry creation


onPolygonSelect

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

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

output: : Angular

description: Emit the event of selecting polygon


onRemoveBbox

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

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

output: : Angular

description: Emits the event of removing the geobox.


onStyleChanged

● onStyleChanged: Subject<Array<StyleGroup>> = new Subject>()

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

output: : Angular

description: Emits all the StyleGroups of the map on style change. Each StyleGroup has its selected Style set.


polygonlabeldata

● polygonlabeldata: object = this.emptyData

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

Type declaration

features: Array<any>

type: string


redrawTile

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

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

output: : Angular

description: Emits the event of whether redraw the tile.


showLayersList

● showLayersList: boolean = false

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


switchLayer

● switchLayer: Subject<Style> = new Subject