31 search basemaps
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install leafmap
# !pip install leafmap
In [2]:
Copied!
import leafmap
import leafmap
Search xyz tiles from xyzservices.
In [3]:
Copied!
leafmap.search_xyz_services(keyword="esri")
leafmap.search_xyz_services(keyword="esri")
Out[3]:
['xyz.Esri.WorldStreetMap', 'xyz.Esri.DeLorme', 'xyz.Esri.WorldTopoMap', 'xyz.Esri.WorldImagery', 'xyz.Esri.WorldTerrain', 'xyz.Esri.WorldShadedRelief', 'xyz.Esri.WorldPhysical', 'xyz.Esri.OceanBasemap', 'xyz.Esri.NatGeoWorldMap', 'xyz.Esri.WorldGrayCanvas', 'xyz.Esri.ArcticOceanBase', 'xyz.Esri.ArcticOceanReference', 'xyz.Esri.AntarcticBasemap']
Add an xyz tile to the map.
In [4]:
Copied!
m = leafmap.Map()
m.add_xyz_service("xyz.Esri.NatGeoWorldMap")
m
m = leafmap.Map()
m.add_xyz_service("xyz.Esri.NatGeoWorldMap")
m
Out[4]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Search xyz tiles from Quick Map Services.
In [5]:
Copied!
leafmap.search_qms(keyword="google")
leafmap.search_qms(keyword="google")
Out[5]:
['qms.Google.cn Normal', 'qms.GoogleMap', 'qms.Googlemaps', 'qms.Google Maps', 'qms.Google Maps (Alternative rendering)', 'qms.Google Maps (India)', 'qms.Google Roads', 'qms.Google.ru Спутник', 'qms.Google Satellite', 'qms.Google Satellite Hybrid']
Add xyz tile to the map.
In [6]:
Copied!
m = leafmap.Map()
m.add_xyz_service("qms.Google Satellite Hybrid")
m
m = leafmap.Map()
m.add_xyz_service("qms.Google Satellite Hybrid")
m
Out[6]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Search basemaps interactively without coding.
Last update:
2022-03-14