new GoCadastre(interactions, idMap)
Constructs an instance of the GoCadastre class.
| Name | Type | Description |
|---|---|---|
interactions |
GoInteractions |
The interactions handler for the map. |
idMap |
string |
The identifier of the map. |
Methods
-
clearCadastreItems()
Services/GoCadastre/index.ts, line 198 -
Clears all cadastre items from the map and updates the source.
-
destroy()
Services/GoCadastre/index.ts, line 216 -
Destroys the cadastre layer and clears all cadastre items.
-
getCadastreData(cadastreIds, paintMap){CancelablePromise}
Services/GoCadastre/index.ts, line 140 -
Fetches cadastre data for the given cadastre IDs and optionally updates the map.
Name Type Default Description cadastreIdsArray.<string> An array of cadastre IDs to fetch data for.
paintMapboolean true optional Whether to update the map with the fetched data.
Returns:
Type Description CancelablePromise A promise that resolves with the fetched cadastre data. -
getCadastreItem(cadastreId){CadastreItem|undefined}
Services/GoCadastre/index.ts, line 182 -
Retrieves a specific cadastre item by its identifier.
Name Type Description cadastreIdstring The identifier of the cadastre item to retrieve.
Returns:
Type Description CadastreItem | undefined The cadastre item, if found; otherwise, undefined. -
getCadastreItems(){Map.<string, CadastreItem>}
Services/GoCadastre/index.ts, line 191 -
Retrieves all cadastre items.
Returns:
Type Description Map.<string, CadastreItem> A map of all cadastre items. -
getLayer(){GOGeoJsonLayer}
Services/GoCadastre/index.ts, line 88 -
Retrieves the cadastre layer.
Returns:
Type Description GOGeoJsonLayer The GeoJSON layer used for displaying cadastre data. -
getMapId(){string}
Services/GoCadastre/index.ts, line 79 -
Retrieves the identifier of the associated map.
Returns:
Type Description string The identifier of the map. -
removeCadastreItem(cadastreId)
Services/GoCadastre/index.ts, line 208 -
Removes a specific cadastre item by its identifier and updates the source.
Name Type Description cadastreIdstring The identifier of the cadastre item to remove.
