-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from heremaps/xyzservices
Added support for external basemaps
- Loading branch information
Showing
8 changed files
with
179 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ name: Tests | |
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
External Basemaps | ||
================= | ||
``here-map-widget-for-jupyter`` also supports basemaps from external tile providers. | ||
We use tile providers defined in `xyzservices <https://github.com/geopandas/xyzservices>`_ | ||
:attr:`here_map_widget.basemaps` is mapped to :class:`xyzservices.providers` | ||
|
||
|
||
Example | ||
------- | ||
|
||
.. jupyter-execute:: | ||
|
||
import os | ||
from here_map_widget import Map, basemaps | ||
|
||
m = Map( | ||
api_key=os.environ["LS_API_KEY"], | ||
center=[52.51477270923461, 13.39846691425174], | ||
zoom=4, | ||
basemap=basemaps.OpenStreetMap.Mapnik, | ||
) | ||
m | ||
|
||
|
||
|
||
Attributes | ||
---------- | ||
|
||
=================== ============================================================ === | ||
Attribute Type Doc | ||
=================== ============================================================ === | ||
basemap object The basemap is object of :class:`xyzservices.lib.TileProvider`, defined under :attr:`here_map_widget.basemaps`. | ||
=================== ============================================================ === |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ipywidgets>=7.6.0,<8 | ||
branca>=0.3.1,<0.5 | ||
branca>=0.3.1,<0.5 | ||
xyzservices>=2021.8.0 |