arlas-web-components > "components/mapgl-import/mapgl-import.component" > MapglImportComponent

Class: MapglImportComponent

Hierarchy

MapglImportComponent

Index

Constructors

Properties

Methods


Constructors

constructor

new MapglImportComponent(dialog: MatDialog): MapglImportComponent

Defined in components/mapgl-import/mapgl-import.component.ts:117

Parameters:

Name Type
dialog MatDialog

Returns: MapglImportComponent


Properties

GEOJSON

● GEOJSON: string = "geojson"

Defined in components/mapgl-import/mapgl-import.component.ts:95


KML

● KML: string = "kml"

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


SHP

● SHP: string = "shp"

Defined in components/mapgl-import/mapgl-import.component.ts:92


WKT

● WKT: string = "wkt"

Defined in components/mapgl-import/mapgl-import.component.ts:94


allowedImportType

● allowedImportType: string[] = [this.SHP, this.KML, this.WKT, this.GEOJSON]

Defined in components/mapgl-import/mapgl-import.component.ts:115


currentFile

● currentFile: File

Defined in components/mapgl-import/mapgl-import.component.ts:97


dialog

● dialog: MatDialog

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


dialogRef

● dialogRef: MatDialogRef<MapglImportDialogComponent>

Defined in components/mapgl-import/mapgl-import.component.ts:98


error

● error: Subject<any> = new Subject()

Defined in components/mapgl-import/mapgl-import.component.ts:117


imported

● imported: Subject<any> = new Subject()

Defined in components/mapgl-import/mapgl-import.component.ts:116


mapComponent

● mapComponent: MapglComponent

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


<Optional> maxFeatures

● maxFeatures: number

Defined in components/mapgl-import/mapgl-import.component.ts:112


<Optional> maxFileSize

● maxFileSize: number

Defined in components/mapgl-import/mapgl-import.component.ts:113


maxLoadingTime

● maxLoadingTime: number = 20000

Defined in components/mapgl-import/mapgl-import.component.ts:114


maxVertexByPolygon

● maxVertexByPolygon: number

Defined in components/mapgl-import/mapgl-import.component.ts:111


reader

● reader: FileReader

Defined in components/mapgl-import/mapgl-import.component.ts:99


Methods

addFeature

addFeature(feature: any, centroides: Array<any>, importedGeojson: object, index: number): void

Defined in components/mapgl-import/mapgl-import.component.ts:518

Parameters:

feature: any

centroides: Array<any>

importedGeojson: object

Name Type
features Array<any>
type string

index: number

Returns: void


calcCentroid

calcCentroid(feature: any): any

Defined in components/mapgl-import/mapgl-import.component.ts:549

Parameters:

Name Type
feature any

Returns: any


clearPolygons

clearPolygons(): void

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

Returns: void


import

import(importType: string, content?: string): void

Defined in components/mapgl-import/mapgl-import.component.ts:152

Parameters:

Name Type
importType string
Optional content string

Returns: void


openDialog

openDialog(): void

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

Returns: void


processAllKml

processAllKml(): Promise<void>

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

Returns: Promise<void>


processAllShape

processAllShape(): Promise<void>

Defined in components/mapgl-import/mapgl-import.component.ts:389

Returns: Promise<void>


processJson

processJson(): Promise<void>

Defined in components/mapgl-import/mapgl-import.component.ts:293

Returns: Promise<void>


processWKT

processWKT(wkt: string): Promise<void>

Defined in components/mapgl-import/mapgl-import.component.ts:457

Parameters:

Name Type
wkt string

Returns: Promise<void>


promiseTimeout

promiseTimeout(ms: any, promise: any): Promise<any>

Defined in components/mapgl-import/mapgl-import.component.ts:123

Parameters:

Name Type
ms any
promise any

Returns: Promise<any>


readJsonFile

readJsonFile(): Promise<string | ArrayBuffer>

Defined in components/mapgl-import/mapgl-import.component.ts:269

Returns: Promise<string | ArrayBuffer>


readKmlFile

readKmlFile(): Promise<string | ArrayBuffer>

Defined in components/mapgl-import/mapgl-import.component.ts:177

Returns: Promise<string | ArrayBuffer>


readZipFile

readZipFile(): Promise<Object>

Defined in components/mapgl-import/mapgl-import.component.ts:359

Returns: Promise<Object>


setImportedData

setImportedData(importedResult: any): void

Defined in components/mapgl-import/mapgl-import.component.ts:526

Parameters:

Name Type
importedResult any

Returns: void