arlas-web-components / Exports / MapglImportComponent

Class: MapglImportComponent

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MapglImportComponent(dialog)

Parameters

Name Type
dialog MatDialog

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:123

Properties

GEOJSON

GEOJSON: string = 'geojson'

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:98


KML

KML: string = 'kml'

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:96


SHP

SHP: string = 'shp'

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:95


WKT

WKT: string = 'wkt'

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:97


allowedImportType

allowedImportType: string[]

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:119


currentFile

currentFile: File

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:100


dialog

dialog: MatDialog


dialogRef

dialogRef: MatDialogRef<MapglImportDialogComponent, any>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:101


error

error: Subject<any>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:121


imported

imported: Subject<any>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:120


mapComponent

mapComponent: MapglComponent

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:114


maxFeatures

Optional maxFeatures: number

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:116


maxFileSize

Optional maxFileSize: number

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:117


maxLoadingTime

maxLoadingTime: number = 20000

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:118


maxVertexByPolygon

maxVertexByPolygon: number

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:115


reader

reader: FileReader

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:102

Methods

addFeature

addFeature(feature, centroides, importedGeojson, index): void

Parameters

Name Type
feature any
centroides any[]
importedGeojson Object
importedGeojson.features any[]
importedGeojson.type string
index number

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:582


calcCentroid

calcCentroid(feature): Feature<Point, { [name: string]: any; }>

Parameters

Name Type
feature any

Returns

Feature<Point, { [name: string]: any; }>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:614


clearPolygons

clearPolygons(): void

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:572


import

import(importType, content?): void

Parameters

Name Type
importType string
content? string

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:156


openDialog

openDialog(): void

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:144


processAllKml

processAllKml(): Promise<void>

Returns

Promise<void>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:207


processAllShape

processAllShape(): Promise<void>

Returns

Promise<void>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:432


processJson

processJson(): Promise<void>

Returns

Promise<void>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:321


processWKT

processWKT(wkt): Promise<void>

Parameters

Name Type
wkt string

Returns

Promise<void>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:505


promiseTimeout

promiseTimeout(ms, promise): Promise<any>

Parameters

Name Type
ms any
promise any

Returns

Promise<any>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:127


readJsonFile

readJsonFile(): Promise<string | ArrayBuffer>

Returns

Promise<string | ArrayBuffer>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:296


readKmlFile

readKmlFile(): Promise<string | ArrayBuffer>

Returns

Promise<string | ArrayBuffer>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:181


readZipFile

readZipFile(): Promise<unknown>

Returns

Promise<unknown>

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:402


setImportedData

setImportedData(importedResult): void

Parameters

Name Type
importedResult any

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:590