diff --git a/docs/source/api_reference/basemaps.rst b/docs/source/api_reference/basemaps.rst index c2bee513a..83e0dc55f 100644 --- a/docs/source/api_reference/basemaps.rst +++ b/docs/source/api_reference/basemaps.rst @@ -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:: diff --git a/ipyleaflet/basemaps.py b/ipyleaflet/basemaps.py index d2ff15978..2c5dac449 100644 --- a/ipyleaflet/basemaps.py +++ b/ipyleaflet/basemaps.py @@ -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,