-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add zoom_adjust param to pygmt.datasets.load_tile_map and Figure.tile…
…map (#2934) The zoom_adjust parameter is used to adjust the automatic zoom level by integer increments. This was added in contextily=1.5.0, see geopandas/contextily#228. * Document that zoom_adjust requires contextily>=1.5.0 * Raise error if zoom_adjust parameter is used with contextily<1.5.0 * Add type hint for zoom_adjust parameter * Fix typecheck by using np.array constructor instead of np.uint8 Fixes `error: Argument 1 to "unsignedinteger" has incompatible type "list[int]"; expected "SupportsInt | str | bytes | SupportsIndex" [arg-type]` * Change directive for zoom_adjust from versionadded to note * Use note and important admonitions in other parts of the docstring * Rely on sphinx-autodoc-typehints --------- Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
- Loading branch information
1 parent
b379976
commit c9c3a4a
Showing
2 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters