Skip to content

Zoom detection is bad on sparse datasets #140

Description

@rclark

The zoom level detection logic for vector data makes an implicit assumption that data is evenly distributed across the dataset's extent. By considering the average tile size as the metric for determining a valid zoom, datasets with very large extents and very little data (e.g. two points halfway across the world from each other), will end up with very low max zoom values.

Issues arise in the case of two points with very low max zoom. At such a low zoom level the vector-tile's encoding of either feature's geometry is very geographically imprecise, but that's ok at low zooms where you can't see the lack of precision. But if you overzoom the low-z tiles in order to portray those points at higher zoom levels, you'll get to a point where you can clearly see the imprecision -- the points will appear to be in the wrong place.

cc @GretaCB

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