createLandmarkStore static method

LandmarkStore createLandmarkStore(
  1. String name, {
  2. int zoom = -1,
  3. String folder = '',
})

Creates a new landmark store with the given name.

The created store uses LandmarkStoreType.defaultType. If a store with the same name already exists the existing store instance is returned instead of creating a duplicate.

Parameters

  • name: The unique name for the store. If a store with this name already exists, the existing store is returned.
  • zoom: The maximum zoom level at which the landmark store will be visible. Use -1 to let the SDK choose a sensible default.
  • folder: Filesystem folder where the store will be created. When empty the SDK's default storage location is used.

Returns

Implementation

static LandmarkStore createLandmarkStore(
  final String name, {
  final int zoom = -1,
  final String folder = '',
}) {
  final OperationResult resultString = staticMethod(
    'LandmarkStoreService',
    'createLandmarkStore',
    args: <String, Object>{'name': name, 'zoom': zoom, 'folder': folder},
  );

  final LandmarkStore retVal = LandmarkStore.init(resultString['result'], 0);
  return retVal;
}