跳到主要内容

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) true to force ThreeJS to loose the context. Supply false to keep the context for further use.

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.