Test folium
In [ ]:
Copied!
import geomapdemo.foliumap as geomapdemo
import geomapdemo.foliumap as geomapdemo
In [ ]:
Copied!
m = geomapdemo.Map(center=[-71.38, -73.9], zoom=11)
m = geomapdemo.Map(center=[-71.38, -73.9], zoom=11)
In [ ]:
Copied!
trail_coordinates = [
(-71.351871840295871, -73.655963711222626),
(-71.374144382613707, -73.719861619751498),
(-71.391042575973145, -73.784922248007007),
(-71.400964450973134, -73.851042243124397),
(-71.402411391077322, -74.050048183880477),
]
trail_coordinates = [
(-71.351871840295871, -73.655963711222626),
(-71.374144382613707, -73.719861619751498),
(-71.391042575973145, -73.784922248007007),
(-71.400964450973134, -73.851042243124397),
(-71.402411391077322, -74.050048183880477),
]
In [ ]:
Copied!
m.add_polylines(trail_coordinates, popup="Trail")
m.add_polylines(trail_coordinates, popup="Trail")
In [ ]:
Copied!
m
m
In [ ]:
Copied!
m.set_center(lat=40, lon=-100, zoom=10)
m.set_center(lat=40, lon=-100, zoom=10)
In [ ]:
Copied!
control_points = [
(40.7128, -100.0059),
(40.7128, -99.9959),
(40.7028, -99.9959),
(40.7028, -100.0059),
]
control_points = [
(40.7128, -100.0059),
(40.7128, -99.9959),
(40.7028, -99.9959),
(40.7028, -100.0059),
]
In [ ]:
Copied!
m.add_polygon(control_points, popup="Control Points")
m.add_polygon(control_points, popup="Control Points")
In [ ]:
Copied!
m.set_center(lat=40.7028, lon=-100.0059, zoom=15)
m.set_center(lat=40.7028, lon=-100.0059, zoom=15)
In [ ]:
Copied!
m.add_layer_control()
m.add_layer_control()
In [ ]:
Copied!
m
m