flywave-mapview.mapview.dispose
Home > @flywave/flywave-mapview > MapView > dispose
MapView.dispose() method
Disposes this MapView.
Signature:
/** @override */
dispose(freeContext?: boolean): void;
Parameters
Parameter | Type | Description |
|---|---|---|
freeContext | boolean | (Optional) |
Returns:
void
## Remarks
This function cleans the resources that are managed manually including those that exist in shared caches.
Note: This function does not try to clean objects that can be disposed off easily by TypeScript's garbage collecting mechanism. Consequently, if you need to perform a full cleanup, you must ensure that all references to this `MapView` are removed.