Set upper limit in `get_zoom` function. · Issue #6 · tcassou/mapsplotlib · GitHub
Skip to content

Set upper limit in get_zoom function. #6

Description

@rudolfbyker

If the list of latitudes and longitudes passed to get_zoom has only one point, or they are all at the same point, the return value of this function goes to infinity, causing OverflowError: cannot convert float infinity to integer. This should be caught or prevented, and a maximum zoom value returned. OR: A more descriptive error should be raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions