SciTools / cartopy

Cartopy - a cartographic python library with matplotlib support
https://scitools.org.uk/cartopy/docs/latest
BSD 3-Clause "New" or "Revised" License
1.38k stars 361 forks source link

Tiles auto zoom based on width / height + bounds #1816

Open ahuang11 opened 2 years ago

ahuang11 commented 2 years ago

Is it possible port this into cartopy? https://github.com/holoviz/geoviews/blob/33876c88b166755774451055869704af65786ab4/geoviews/util.py#L111-L136

greglucas commented 2 years ago

We have an AdaptiveScaler for geometries, so I would guess similar logic could be added to the tiles classes too. https://github.com/SciTools/cartopy/blob/4ca93c1eefa86cb85177467407852b4636bb3e70/lib/cartopy/feature/__init__.py#L471-L474