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:119

Parameters:

Name Type
dialog MatDialog

Returns: MapglImportComponent


Properties

GEOJSON

● GEOJSON: string = "geojson"

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


KML

● KML: string = "kml"

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


SHP

● SHP: string = "shp"

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


WKT

● WKT: string = "wkt"

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


allowedImportType

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

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


currentFile

● currentFile: File

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


dialog

● dialog: MatDialog

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


dialogRef

● dialogRef: MatDialogRef<MapglImportDialogComponent>

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


error

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

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


imported

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

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


mapComponent

● mapComponent: MapglComponent

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


<Optional> maxFeatures

● maxFeatures: number

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


<Optional> maxFileSize

● maxFileSize: number

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


maxLoadingTime

● maxLoadingTime: number = 20000

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


maxVertexByPolygon

● maxVertexByPolygon: number

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


reader

● reader: FileReader

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


Methods

addFeature

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

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

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:626

Parameters:

Name Type
feature any

Returns: any


clearPolygons

clearPolygons(): void

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

Returns: void


import

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

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

Parameters:

Name Type
importType string
Optional content string

Returns: void


openDialog

openDialog(): void

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

Returns: void


processAllKml

processAllKml(): Promise<void>

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

Returns: Promise<void>


processAllShape

processAllShape(): Promise<void>

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

Returns: Promise<void>


processJson

processJson(): Promise<void>

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

Returns: Promise<void>


processWKT

processWKT(wkt: string): Promise<void>

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

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:125

Parameters:

Name Type
ms any
promise any

Returns: Promise<any>


readJsonFile

readJsonFile(): Promise<string | ArrayBuffer>

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

Returns: Promise<string | ArrayBuffer>


readKmlFile

readKmlFile(): Promise<string | ArrayBuffer>

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

Returns: Promise<string | ArrayBuffer>


readZipFile

readZipFile(): Promise<Object>

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

Returns: Promise<Object>


setImportedData

setImportedData(importedResult: any): void

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

Parameters:

Name Type
importedResult any

Returns: void