Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

attribution on maps applies to all layers despite being set to only one #8391

Open
alexarobu opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@alexarobu
Copy link
Contributor

Describe the bug
I am setting the attribution on a layer like so in the config-viewer.xml:

      <ows-context:VendorExtension>
        <ows-context:Attribution>
          <ows-context:Title>© Crown copyright and database rights Ordnance Survey xxxxx</ows-context:Title>
        </ows-context:Attribution>
      </ows-context:VendorExtension>

However, this shows on all layers on the map, despite others not having the attribution set.

To Reproduce
Steps to reproduce the behavior:

  1. Edit your config-viewer.xml file
  2. Set up a layer and set its attribution like above
  3. Set up a second layer with no attribution
  4. Go to the map
  5. See error by changing between the layers

Expected behavior
I was expecting the attribution to only show on the layer it's applied to, since other layers could technically have a different attribution statement or not need one at all.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant