Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

worldCopyJump doesn't preserve "previous world" overlays. #1306

Open
5 tasks done
Roma36 opened this issue Oct 17, 2019 · 0 comments
Open
5 tasks done

worldCopyJump doesn't preserve "previous world" overlays. #1306

Roma36 opened this issue Oct 17, 2019 · 0 comments

Comments

@Roma36
Copy link

Roma36 commented Oct 17, 2019

Map doesn't preserve "previous world" overlays when dragging from one "world" to another and "previous world" is still visible.

  • I've looked at the documentation to make sure the behavior is documented and expected
  • I'm sure this is a mapbox.js code issue, not an issue with my own code nor with the framework I'm using (React)
  • I've searched through the issues to make sure it's not yet reported (including Leaflet library, btw thanks for the issue template)

Steps to reproduce
Steps to reproduce the behavior:

  • Create Map with some layers on it.
  • set worldCopyJump option to true
  • Drag map to the "next world" in the way that both "previous world" and "next world" are visible.

Expected behavior
"Previous world" overlays are visible.

Current behavior
"Previous world" overlays disappear.

Environment

  • mapbox.js version: 3.2.0
  • Browser (with version): Google Chrome Version 77.0.3865.120 (Official Build) (64-bit)
  • OS/Platform (with version): macOSMojave v10.14.6

Minimal example reproducing the issue
This map has marker placed in Australia:

https://plnkr.co/edit/5raIGRh89ZwNyQ3uv9MM?p=preview

  • this example is as simple as possible
  • this example does not rely on any third party code
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant