an array of attributions
JMap.Map.Attribution.addSingle
Add a custom attribution on the map.
the attribution to add to the map
JMap.Map.Attribution.getAll
Returns all attributions displayed on the map.
JMap.Map.Attribution.getById
Returns an attribution for the given id
The attribution id
JMap.Map.Attribution.isDefaultAttributionId
Returns true if the given id is reserved
The attribution id
JMap.Map.Attribution.removeByIds
Remove the attributions from the map for the given ids (does nothing if id not found)
array of attribution ids to remove
JMap.Map.Attribution.addMultiple
Add multiple attributions on the map.
Errors if invalid parameters, or if an attribution having the same id already exists
// Add two custom attributions on the map. JMap.Map.Attribution.addMultiple([{ id: "custom-attribution-0", text: "© K2Geospatial", href: "https://k2geospatial.com/jmap-en/" }, { id: "custom-attribution-1", text: "© StackOverflow", href: "https://stackoverflow.com/" }])