JMap.MapContext.addCssClassesToIgnoreForPreviewImage
Add css classes in the list of css class to ignore/hide when processing the preview image.
JMap.MapContext.applyContextById
Apples the map context for a given id.
the JMap map context id
JMap.MapContext.cancelCreation
Hides the creation tab, input are cleared, and list of map-context are displayed.
JMap.MapContext.getListFilter
If a filter is applied on the map context list, this function clears it.
JMap.MapContext.create
Creates a map context. The map-context creation is persisted server-side.
You just need to provide the context meta-data (= data that describe the context).
The current map context will be saved.
the complete map context meta-data
the created map context, with it's id
JMap.MapContext.existsById
Returns true if map context exists for a given id, else false.
the JMap map context id
JMap.MapContext.filterList
Filters the map context list.
The filter is done on "title" and/or "description".
a string
JMap.MapContext.getAll
Returns all map contexts fetched from server, for the given project.
JMap.MapContext.getAllListSortBy
Returns all available map context list sort : [ "alphabetic", "lastUpdate" ]
JMap.MapContext.getAllListSortDirection
Returns all available map context list sort directions : [ "asc", "desc" ]
JMap.MapContext.getById
Returns the map context for a given id.
the JMap map context id
JMap.MapContext.getContextDescription
Returns the map context description for a given map context id.
the JMap map context id
JMap.MapContext.getContextTitle
Returns the map context title for a given map context id.
the JMap map context id
JMap.MapContext.getDefaultContext
Returns the default map context if one has been set as default, else undefined.
The default map context is loaded automatically at startup.
JMap.MapContext.getIgnoredCssClassesForPreviewImage
Add css classes in the list of css class to ignore/hide when processing the preview image.
JMap.MapContext.getListFilter
Returns the currently applied filter on the map context list, or an empty string if no filter is applied.
JMap.MapContext.getListSortBy
Returns the map-context list sort.
JMap.MapContext.getListSortDirection
Returns the map-context list sort direction.
JMap.MapContext.getPreviewImageSize
Returns the preview image size.
JMap.MapContext.getUrlByUUID
Returns the map context url, accessible if the map context is shared.
the JMap map context UUID (not the id but the UUID)
JMap.MapContext.isActive
Returns false if the map context functionnality is not active.
Some users don't have access to map context, like the anonymous or system user.
If map context service is not avalable, user cannot access, create, update or delete context from the service.
JMap.MapContext.isDefaultContext
Returns true if the map context is the default one, given the id.
The default map context is loaded automatically at startup.
the JMap map context id
JMap.MapContext.isLinkShared
Returns true if the map context is shared, for a given map context id.
the JMap map context id
JMap.MapContext.setActive
Activate or deactivate mapcontext functionality.
If map context functionality is not active, user cannot access, create, update or delete context from the service.
true to activate, else false
JMap.MapContext.setContextDescription
Updates a map context description, without changing the map data.
The map-context description is persisted server-side.
the JMap map context id
the new description
JMap.MapContext.setContextTitle
Updates a map context title, without changing the map data.
The map-context title is persisted server-side.
the JMap map context id
the new title
JMap.MapContext.setCreateDescription
Set the description for the creation panel (visible in NG app only).
the new description to display
JMap.MapContext.setCreateTitle
Set the title for the creation panel (visible in NG app only).
the new title to display
JMap.MapContext.setCreateTitleError
Set the title creation in error or not for the creation panel (visible in NG app only).
true or false
JMap.MapContext.setDefaultContext
Sets or unsets default map context, the change is persited server side.
If a contextId is provided, sets the map context as the default one.
If no context id is provided, unsets the current default context.
the JMap map context id
JMap.MapContext.setLinkShare
Updates a map context link share state, without changing the map data.
The map-context link share state is persisted server-side.
the JMap map context id
true if the link is shared, else false
JMap.MapContext.setListSortDirection
Changes the map-context list sort direction. The change is persited in local storage.
"asc" : ascendant sort "desc" : descendant sort
"asc" or "desc"
JMap.MapContext.setPreviewImageSize
Set the preview image size, by default size is :
JMap.MapContext.sortListBy
Changes the map-context list sort. The change is persited in local storage.
"alphabetic" : list following map context title string "lastUpdate" : list following map context last update
"alphabetic" or "lastUpdate"
JMap.MapContext.startCreation
Displays the new map-context tab on screen.
JMap.MapContext.update
Updates a map context, saves the current map context data.
The map-context update is persisted server-side.
You can provide partial meta-data (= data that describes the context), if a meta-data is not provided, it will not be changed.
the JMap map context id
partial map context meta-data, only data provided will be updated
the updated map context
JMap.MapContext.updateMetaData
Updates a map context meta-data (= data that describe the context), without changing the map data.
The map context map's data will not be changed, for that use JMap.MapContext.update function.
The map-context meta-data is persisted server-side.
You can provide partial meta-data, if a meta-data is not provided it will not be changed.
the JMap map context id
the updated map context
JMap.MapContext
You can manage map contexts here.