The basemap id, use JMap.Map.Basemap.getAllId() to get available basemap ids
JMap.Map.Basemap.add
Add a new basemap on the map.
You can find tile servers here : https://wiki.openstreetmap.org/wiki/Tile_servers
The basemap descriptor
if true create the basemap and activate it
if provided, add the basemap before the given id
JMap.Map.Basemap.deactivate
Deactivate the current active basemap on the map.
Do nothing if no map is active.
JMap.Map.Basemap.existsById
Returs true if basemap exist for the given id.
The basemap id, use JMap.Map.Basemap.getAllId() to get available basemap ids
JMap.Map.Basemap.getActiveId
Returns the active basemap id, undefined is no basemap is activated.
JMap.Map.Basemap.getAllIds
Returns the available basemap ids that can be used with method activateById.
Mapbox values are : "mapbox-light", "mapbox-streets", "mapbox-satellite", "mapbox-satellite-streets", "mapbox-dark", or "mapbox-outdoors"
OSM value is : "osm-standard"
an array of string, the available basemap ids
JMap.Map.Basemap.getById
Returs the basemap descriptor for the given id.
The basemap id, use JMap.Map.Basemap.getAllId() to get available basemap ids
JMap.Map.Basemap.isActive
Returns true if a basemap is active on the map.
JMap.Map.Basemap.isDisabled
Returns true if basemaps are disabled.
Can be disabled with option disableBasemaps JCoreOptions in JS options, or with url param "ngDisableBasemaps=true".
JMap.Map.Basemap.isMapboxId
Returns true if the basemap id is a mapbox basemap.
JMap.Map.Basemap.isOSMId
Returns true if the basemap id is an Open Street Map basemap.
JMap.Map.Basemap.removeById
Remove a basemap for a given id.
If id doesn't exist do nothing.
If the active basemap is removed, no basemap will be displayed anymore.
the basemap id
JMap.Map.Basemap.removeByIds
Remove basemaps for the given ids.
If an id doesn't exist it is ignored.
If the active basemap is removed, no basemap will be displayed anymore.
JMap.Map.Basemap.activateById
Apply the basemap on the map.
Error if basemap not found for the given id
// Activate the basemap "streets" JMap.Map.Basemap.activateById("streets") // Deactivate current basemap JMap.Map.Basemap.deactivate()