Functions
addMultiple
-
Parameters
Returns void
addSingle
-
Parameters
Returns void
getAll
-
getById
-
Parameters
isDefaultAttributionId
- isDefaultAttributionId(attributionId: string): boolean
-
Parameters
Returns boolean
removeByIds
- removeByIds(attributionsIds: string[]): void
-
Parameters
-
attributionsIds: string[]
Returns void
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/" }])