Create a new map in a given div id. GV The div MUST NOT have a geoview-map class or a warning will be shown when initMapDivFromFunctionCall is called. If is present, the div will be created with a default config
Id of the div to create map in (becomes the mapId)
Config passed in from the function call (string or url of a config path)
OptionaldivHeight: numberOptional, height of the div to inject the map in (mandatory if the map reloads)
A Promise containing the MapViewer which will be created from the configuration.
Deletes a map viewer instance by its ID and unmounts it from the DOM - for React.
The unique identifier of the map to delete
True if we want to delete div from the page
Promise when the map viewer is deleted
Gets a map viewer instance by its ID.
The unique identifier of the map to retrieve
The map viewer instance if found
Asynchronously gets a map viewer instance by its ID.
The unique identifier of the map to retrieve
The map viewer instance when/if found.
Gets the list of all map IDs currently in the collection.
Array of map IDs
Returns true if a map id is already registered.
The unique identifier of the map to retrieve
True if map exist
Reload a map from a config object stored in store, or provided. It first removes then recreates the map.
OptionalmapConfig: TypeMapFeaturesConfig | TypeMapFeaturesInstanceOptional map config to use for reload.
A Promise containing the MapViewer which will be created once reloaded.
Reload a map from a config object created using current map state. It first removes then recreates the map.
Indicates if geocore layer names should be kept as is or returned to defaults. Set to false after a language change to update the layer names with the new language.
A Promise containing the MapViewer which will be created once reloaded.
Sets a map viewer in maps.
ID of the map
The viewer to be added
Class used to handle api calls (events, functions etc...)
Exports
API