mapbox / geojson.io

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

Rendering near poles #893

Open hannorein opened 5 months ago

hannorein commented 5 months ago

The rendering near the poles does not work correctly. Here is a simple polygon:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          [
            [              0,             80            ],
            [              0,             89.0           ],
            [              45,           89.0           ],
            [              45,           80.0           ],
            [              0,             80            ]
          ]
        ],
        "type": "Polygon"
      }

    }
  ]
}

What is rendered depends on the viewing angle and the zoom level (but is always incorrect). Two examples: Screenshot 2024-05-05 at 6 03 27 PM Screenshot 2024-05-05 at 6 03 32 PM