import webbrowser
import folium
import json
import pandas as pd
import folium
from folium.plugins import MarkerCluster
from folium.plugins import Search
m = folium.Map(location=[31.23, 121.47], zoom_start=3)
marker_cluster = MarkerCluster().add_to(m)
pork_layer = folium.FeatureGroup(name="猪肉")
pork_cluster = MarkerCluster().add_to(pork_layer)
m.add_child(pork_layer)
m.add_child(folium.map.LayerControl())
m.save("test.html")
webbrowser.open('test.html')
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/214206.html原文链接:https://javaforall.net
