Skip to content

attribution defined in local config isn't used #230

Description

@almccon

For the MapLibre renderer, it appears that any attribution string we define in config files is not being used, or maybe it is but it's being overridden by attribution from the style's tilejson. I noticed this because in the Stadia Maps style in our gh.pages.js config (here

'&copy; <a href="https://stamen.com/" target="_blank">Stamen Design</a> &copy; <a href="https://www.openstreetmap.org/about/" target="_blank">OpenStreetMap contributors</a>',
) we have slightly different wording than what we are seeing rendered on the map. Instead, what we get is the attribution coming from the tilejson associated with those styles: https://tiles.stadiamaps.com/data/stamen-omt.json

For me the expected behavior would be for the attribution I define in the config to override the one coming from the tiles. (In the specific case of our Stadia demos it doesn't matter really, either attribution is fine and they're effectively the same.)

Also, it looks like the attribution we define for styles that use Leaflet aren't showing up at all. At least on the gh-pages demo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions