mapbox / geojson.io

A quick, simple tool for creating, viewing, and sharing spatial data
http://geojson.io/
ISC License
1.87k stars 560 forks source link

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

Open robhawkes opened 1 year ago

robhawkes commented 1 year ago

Description

Steps to replicate

Videos

https://github.com/mapbox/geojson.io/assets/22612/fb6b12fc-bb3c-49b7-ad52-e0c4aa08a672

https://github.com/mapbox/geojson.io/assets/22612/5ce1bcd3-681a-4917-83f5-82ed48011bbe

https://github.com/mapbox/geojson.io/assets/22612/a6b3f764-ca61-4670-885b-00609f3cdfb1

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 commented 1 year ago

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