import numpy as np
from lets_plot import *
from lets_plot.geo_data import *
LetsPlot.setup_html()
The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).
cities = geocode_cities(['Berlin', 'Sankt-Peterburg', 'Washington', 'Mbarara'])
ggplot() + geom_livemap() + geom_point(map=cities, color='red') + geom_text(aes(label='found name'), map=cities, nudge_y = 5, color='red')
ggplot() + geom_livemap() + geom_point(map=cities, color='red') + geom_text(aes(label='found name'), map=cities, nudge_y = 1, color='red')
ggplot() + geom_livemap(const_size_zoomin=0) + geom_point(map=cities, color='red') + geom_text(aes(label='found name'), map=cities, nudge_y = 1, color='red')