from lets_plot import *
from lets_plot.geo_data import *
The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).
LetsPlot.setup_html()
data = {"city": ["Los Angeles", "Chicago", "New York"], \
"angle": [0, 45, 90]}
centroids = geocode_cities(data["city"]).get_centroids()
ggplot() + geom_livemap() + \
geom_point(aes(angle="angle"), color="red", show_legend=False, \
shape=14, size=10, data=data, map=centroids, map_join="city", \
tooltips=layer_tooltips().title("@city").line("angle|@angle"))