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

Canvas source doesn't render in world repeats at edges #7271

Closed
ansis opened this issue Sep 12, 2018 · 0 comments · Fixed by #7273
Closed

Canvas source doesn't render in world repeats at edges #7271

ansis opened this issue Sep 12, 2018 · 0 comments · Fixed by #7273
Assignees
Labels

Comments

@ansis
Copy link
Contributor

ansis commented Sep 12, 2018

The example above shows our requirement of syncing a canvas source (represented by a green border with blue background) such that it is always centered in the map container and is equal to the pixel width of one world. The bug can be seen in the rightmost world repeat, where the canvas is not visible. If you pan the map east past the antimeridian, the canvases render correctly. This also happens when zooming. For example, zooming into the left instance of India from the initial view will cause the canvas to disappear once the map bounds no longer contains the antimeridian.

mapbox-gl-js version: master

browser: Chrome

Steps to Trigger Behavior

  1. Add canvas source that covers large part of the world and crosses antimeridian
  2. Zoom out
  3. See missing copy at right edge of map

Link to Demonstration

https://codepen.io/anon/pen/pOVPgE

Expected Behavior

Renders canvas on right side.

Actual Behavior

Doesn't render canvas.

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.

1 participant