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

Points shift location during zoom and pan when using globe view #853

Open
robhawkes opened this issue Jun 12, 2023 · 1 comment
Open

Points shift location during zoom and pan when using globe view #853

robhawkes opened this issue Jun 12, 2023 · 1 comment

Comments

@robhawkes
Copy link

Description

  • Points placed on map move around when panning and zooming in globe view
  • Points jump to a different location when transitioning between globe and mercator (zoom 6)
  • Polygons seem to behave correctly and as expected (it's only points)

Steps to replicate

  • Load GeoJSON.io and ensure globe view is active
  • Add some points to a fresh map at locations you will notice a change (GeoJSON attached below)
  • Pan and zoom in and out and notice point markers moving around

Videos

geojson-io.mp4
geojson-io-2.mp4
geojson-io-3.mp4

GeoJSON

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          -5.45888411963125,
          50.14225674448795
        ],
        "type": "Point"
      }
    },
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          -4.928592098664097,
          54.612973618541474
        ],
        "type": "Point"
      }
    },
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          -6.8316533168215585,
          58.786368358282004
        ],
        "type": "Point"
      }
    },
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          1.2771290139385485,
          51.38217934133931
        ],
        "type": "Point"
      }
    }
  ]
}
@chriswhong
Copy link
Contributor

Thanks for flagging. Looks like this is a known bug in Mapbox GL JS: mapbox/mapbox-gl-js#12592

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

No branches or pull requests

2 participants