Markers Shape Rotation of Points on Livemap

In [1]:
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).
In [2]:
LetsPlot.setup_html()
In [3]:
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"))
Out[3]: