Skip to content

Issue when drawing shapes spanning anti-meridian #21

@nighthawk

Description

@nighthawk

Two GeoJSON files attaches for Alaska and New Zealand.

They fail to draw correctly when using this snippet:

    // now draw each individually
    let drawer = GeoDrawer(
      size: .init(rect.size),
      projection: Projections.Mercator(reference: boundingBox.center),
      zoomTo: boundingBox
    )
    let contents = GeoDrawer.Content.shapeContent(for: overlays, fill: fill, stroke: stroke, fallback: fallback)
    drawer.draw(contents, in: context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions