Skip to content

Commit

Permalink
add gaode (#681)
Browse files Browse the repository at this point in the history
Co-authored-by: meng.xiang <[email protected]>
  • Loading branch information
xiangmeng4geo and meng.xiang authored Aug 25, 2020
1 parent 86b4413 commit ac65482
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/api_reference/basemaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ your own ``TileLayer`` layer.

Map(basemap=basemaps.OpenTopoMap, center=center, zoom=zoom)

.. jupyter-execute::

Map(basemap=basemaps.Gaode.Normal, center=center, zoom=zoom)

.. jupyter-execute::

Map(basemap=basemaps.Gaode.Satellite, center=center, zoom=zoom)


.. jupyter-execute::

Expand Down
12 changes: 12 additions & 0 deletions ipyleaflet/basemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
name='OpenStreetMap.HOT'
)
),
Gaode=Bunch(
Normal=dict(
url='http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}',
max_zoom=19,
name='Gaode.Normal'
),
Satellite=dict(
url='http://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
max_zoom=19,
name='Gaode.Satellite'
),
),
OpenTopoMap=dict(
url='https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
max_zoom=17,
Expand Down

0 comments on commit ac65482

Please sign in to comment.