• JMap.Map.Attribution.addMultiple

    Add multiple attributions on the map.

    Parameters

    Returns void

    Throws

    Errors if invalid parameters, or if an attribution having the same id already exists

    Example

    // 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/" }])