我正在用http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi“的天气数据覆盖地图,但看起来像是天气地图将背景地图移开,以便美国地图可见。Python的新功能,希望覆盖天气在顶部,然后看我没有做正确的事-在此先感谢您的任何建议。
from ipyleaflet import (
Map, basemaps, basemap_to_tiles,
Marker, DrawControl, WMSLayer)
m = Map(center=(39, -98), zoom=4, basemap=basemaps.Esri.DeLorme)
marker = Marker(location=(39, -98))
dc=DrawControl(circle={'shapeOptions':{'color':'#0000FF'}})
wms = WMSLayer(
url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi",
layers = "nexrad-n0r-900913",
fmt='image/png',
attr=u'Weather data © 2012 IEM Nexrad',
transparent=True)
m.add_layer(marker)
m.add_control(dc)
m.add_layer(wms)
m