new LayerManager(goTruckLayer)
Constructs a LayerManager instance using dependency injection.
| Name | Type | Description |
|---|---|---|
goTruckLayer |
GoTruckLayer |
The GoTruckLayer instance associated with this manager. |
Members
-
goTruckLayer
-
Gets the GoTruckLayer instance.
Methods
-
getLayerById(id){VectorLayer.<VectorSource>|undefined}
Layers/GoTruckLayer/src/LayerManager.ts, line 439 -
Retrieves a layer by its ID from the staging map.
Name Type Description idstring The ID of the layer to retrieve.
Returns:
Type Description VectorLayer.<VectorSource> | undefined The retrieved layer or undefined if not found. -
getVisibility(){boolean}
Layers/GoXYZLayer/subClases/index.ts, line 86 -
Gets the visibility status of the managed layer.
Returns:
Type Description boolean The visibility status of the layer. -
asyncloader(extent){Promise.<unknown>}
Layers/GoTruckLayer/src/LayerManager.ts, line 404 -
Loads features from the server within the specified extent using the strategy pattern.
Name Type Description extentExtent The extent within which to load features.
Throws:
-
Throws an error if the request fails or if the response indicates a problem.
- Type
- Error
Returns:
Type Description Promise.<unknown> A promise that resolves with the response data from the server. -
-
reloadFeatures()
Layers/GoTruckLayer/src/LayerManager.ts, line 447 -
Forces a reload of features when filters change
-
setZIndex(number)
Layers/GoXYZLayer/subClases/index.ts, line 95 -
Sets the z-index of the managed layer.
Name Type Description numbernumber The z-index value to set.
-
unmount()
Layers/GoTruckLayer/src/LayerManager.ts, line 412 -
Unmounts the layer manager and cleans up resources.
