if map-context not found, or server request error
// deletes the map-context id=5
JMap.MapContext
.deleteContextById(5)
.then(() => console.info("Context 5 deleted !"))
.catch(error => console.error(error))
// deletes map-contexts id in [ 3, 5, 12 ]
JMap.MapContext
.deleteContextById([ 3, 5, 12 ])
.then(() => console.info("Three map contexts have been deleted !"))
.catch(error => console.error(error))
JMap.MapContext.deleteContextById
Deletes the map context for a given id.
The map-context deletion is persisted server-side.
This is a full delete.