webmap¶
- mipylib.plotlib.miplot.webmap(provider='OpenStreetMap', order=0)¶
Add a new web map layer.
- Parameters
provider – (string) Web map provider.
order – (int) Layer order.
- Returns
Web map layer
Example:
#Add a map axes with mercator projection axesm(position=[0,0,1,1], proj='merc', griddx=5, griddy=5) #Add a web map layer wlayer = webmap(provider='BingHybridMap') #Add a shape layer lchina = shaperead('D:/Temp/Map/bou2_4p.shp') geoshow(lchina, edgecolor='b') #Set lon/lat extent axism([110, 130, 35, 45]) title('Web map example')