arlas-web-components / Exports / MapglImportComponent
Class: MapglImportComponent
Table of contents
Constructors
Properties
- FILE_TOO_LARGE
- GEOJSON
- GEOMETRY_INVALID
- KML
- PARSING_ISSUE
- SELF_INTERSECT
- SHP
- TIMEOUT
- TOO_MANY_FEATURES
- TOO_MANY_VERTICES
- WKT
- allowedGeometryObjectType
- allowedImportType
- currentFile
- dialog
- dialogRef
- error
- imported
- mapComponent
- maxFeatures
- maxFileSize
- maxLoadingTime
- maxVertexByPolygon
- reader
Methods
- addFeature
- buildFeature
- calcCentroid
- clearPolygons
- handleFeatureCollection
- handleGeometryCollection
- handleMultiGeometry
- handleSimpleGeometry
- import
- openDialog
- processAllKml
- processAllShape
- processJson
- processWKT
- promiseTimeout
- readJsonFile
- readKmlFile
- readZipFile
- setImportedData
Constructors
constructor
• new MapglImportComponent(dialog
)
Parameters
Name | Type |
---|---|
dialog |
MatDialog |
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:163
Properties
FILE_TOO_LARGE
• FILE_TOO_LARGE: "File is too large"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:133
GEOJSON
• GEOJSON: string
= 'geojson'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:129
GEOMETRY_INVALID
• GEOMETRY_INVALID: "Geometry is not valid"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:134
KML
• KML: string
= 'kml'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:127
PARSING_ISSUE
• PARSING_ISSUE: "Problem parsing input file"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:132
SELF_INTERSECT
• SELF_INTERSECT: "Geometry is not valid due to self-intersection"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:131
SHP
• SHP: string
= 'shp'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:126
TIMEOUT
• TIMEOUT: "Timeout"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:137
TOO_MANY_FEATURES
• TOO_MANY_FEATURES: "Too many features"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:136
TOO_MANY_VERTICES
• TOO_MANY_VERTICES: "Too many vertices in a polygon"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:135
WKT
• WKT: string
= 'wkt'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:128
allowedGeometryObjectType
• allowedGeometryObjectType: AllowedImportGeometry
[]
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:159
allowedImportType
• allowedImportType: string
[]
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:158
currentFile
• currentFile: File
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:139
dialog
• dialog: MatDialog
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:164
dialogRef
• dialogRef: MatDialogRef
<MapglImportDialogComponent
, any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:140
error
• error: Subject
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:161
imported
• imported: Subject
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:160
mapComponent
• mapComponent: MapglComponent
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:153
maxFeatures
• Optional
maxFeatures: number
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:155
maxFileSize
• Optional
maxFileSize: number
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:156
maxLoadingTime
• maxLoadingTime: number
= 20000
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:157
maxVertexByPolygon
• maxVertexByPolygon: number
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:154
reader
• reader: FileReader
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:141
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:522
buildFeature
▸ buildFeature(geom
, feature
, geometryType?
, bbox?
): Object
Parameters
Name | Type |
---|---|
geom |
any |
feature |
any |
geometryType? |
string |
bbox? |
boolean |
Returns
Object
Name | Type |
---|---|
geometry |
{ coordinates : any = geom; type : any } |
geometry.coordinates |
any |
geometry.type |
any |
properties |
any |
type |
string |
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:239
calcCentroid
▸ calcCentroid(feature
): any
Parameters
Name | Type |
---|---|
feature |
any |
Returns
any
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:554
clearPolygons
▸ clearPolygons(): void
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:512
handleFeatureCollection
▸ handleFeatureCollection(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:284
handleGeometryCollection
▸ handleGeometryCollection(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:274
handleMultiGeometry
▸ handleMultiGeometry(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:264
handleSimpleGeometry
▸ handleSimpleGeometry(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:255
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:217
openDialog
▸ openDialog(defaultFitResult?
): void
Parameters
Name | Type |
---|---|
defaultFitResult? |
boolean |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:205
processAllKml
▸ processAllKml(): Promise
<void
>
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:325
processAllShape
▸ processAllShape(): Promise
<void
>
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:449
processJson
▸ processJson(): Promise
<void
>
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:383
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:482
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:167
readJsonFile
▸ readJsonFile(): Promise
<string
| ArrayBuffer
>
Returns
Promise
<string
| ArrayBuffer
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:358
readKmlFile
▸ readKmlFile(): Promise
<string
| ArrayBuffer
>
Returns
Promise
<string
| ArrayBuffer
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:299
readZipFile
▸ readZipFile(): Promise
<unknown
>
Returns
Promise
<unknown
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:419
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:530