Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Compact attribution broken in top-left/top-right locations. #7439

Closed
blakekl opened this issue Oct 18, 2018 · 1 comment · Fixed by #7445
Closed

Compact attribution broken in top-left/top-right locations. #7439

blakekl opened this issue Oct 18, 2018 · 1 comment · Fixed by #7445
Labels

Comments

@blakekl
Copy link

blakekl commented Oct 18, 2018

mapbox-gl-js version: 0.50.0

browser: Chrome

Steps to Trigger Behavior

Create a new map with attribution set to false.
add a new attribution control with the compact setting set to true to either the 'top-left' or 'top-right' locations.

Link to Demonstration

The attribution control does not appear.

https://jsfiddle.net/LiquidDivide/3o1nfmza/2/

by adding some space to the top, you can see it is added to the map, however, it is above the map and not displayed. In addition, hovering/clicking the attribution icon causes the attribution to appear below the icon, and flicker since it is immediately blurred/hovered repeatedly.
https://jsfiddle.net/LiquidDivide/3o1nfmza/5/

Expected Behavior

the icon appears on the map correctly and doesn't change position when hovered.

Actual Behavior

the attribution appears above the map, out of view, and custom styling to move the attribution back into view reveals a blur/hover flicker loop.

@malwoodsantoro
Copy link
Contributor

@blakekl thanks for reporting this! I'm able to reproduce the issue you are seeing and we are taking a closer look at this.

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

Successfully merging a pull request may close this issue.

3 participants