Skip to content

getZooms inconsistent when longitudes exceed +-180 #147

Description

@davidtheclark

I've only been looking into GeoJSON, so I don't know if the same thing stretches to other data types.

If the data is entirely contained in longitudes more negative than -180 (e.g. a point at [-222, 30]), I see Error calculating min/max zoom: Bounds invalid. If it is entirely contained in longitudes more positive than +180, though, I see no error.

If the data stretches from one world into another, e.g. an extent [-21.796875, 31.952162238024975, 444.03125, 33.137551192346145], getZooms() returns the minimum zoom levels, 0 6. That zoom level would not capture the feature on a map, though.

I'm just trying to get to the bottom of what the expectation is here concerning longitudes +-180.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions