close method

void close()

Closes a mobile map package.

Closes a mobile map package and frees file locks on the underlying .mmpk file or directory.

All references to mobile map package data (maps, layers, tables, networks, locators, etc.) should be released before closing the package. If active references to mobile map package data exist, this method will still close the package, but subsequent rendering and data access methods will fail. Results of accessing mobile map package data after MobileMapPackage.close are undefined.

After closing a mobile map package, the underlying .mmpk file or directory can be moved or deleted.

Closing a mobile map package is not necessary if the package has not been loaded.

Implementation

void close() {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_MobileMapPackage_close(
      _handle,
      errorHandler,
    );
  });
}