Class: GeoJSONShapesData
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:3
Implements
ShapesData
Constructors
Constructor
new GeoJSONShapesData(
multiPolygons,ids?):GeoJSONShapesData
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:7
Parameters
multiPolygons
MultiPolygon[]
ids?
number[]
Returns
GeoJSONShapesData
Methods
destroy()
destroy():
void
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:35
Releases all resources held by this data object
Returns
void
Implementation of
ShapesData.destroy
getIds()
getIds():
number[]
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:12
Returns an array of item IDs
Returns
number[]
Implementation of
ShapesData.getIds
getSize()
getSize():
number
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:23
Returns the total number of items
Returns
number
Implementation of
ShapesData.getSize
loadMultiPolygons()
loadMultiPolygons(
options?):Promise<MultiPolygon[]>
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:27
Loads the multi-polygon geometry for all shapes
Parameters
options?
Optional abort signal and progress callback
signal?
AbortSignal
Returns
Promise<MultiPolygon[]>
One MultiPolygon per shape, in index order
Implementation of
ShapesData.loadMultiPolygons