createLandmarkStore static method

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

Create a new landmark store. The landmark store type for all stores created with this function is LandmarkStoreType.defaultType

Parameters

  • IN name The name of the landmark store. The name must be unique otherwise will return GemError.exist.
  • IN zoom The max zoom step at which the landmark store will be visible. If -1, a default optimal zoom level is selected.
  • IN folder Folder path where the landmark store will be created. If empty, the landmark store will be created in the SDK default location.

If a landmark store with the given name already exists, it is returned.

Returns

  • LandmarkStore object. If a landmark store already exists, it is returned.

Throws

  • An exception if it fails to initialize.

Implementation

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

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