Map
Task 1 Ipyleaflet Map Class Integration¶
In [1]:
Copied!
import temp_interpolation
import temp_interpolation
In [2]:
Copied!
m = temp_interpolation.Map(center=[23, 76], zoom=4, height="300px")
m.add_basemap("OpenTopoMap")
m.add_google_map("satellite")
m = temp_interpolation.Map(center=[23, 76], zoom=4, height="300px")
m.add_basemap("OpenTopoMap")
m.add_google_map("satellite")
In [3]:
Copied!
m.add_layer_control()
m.add_layer_control()
In [4]:
Copied!
url = (
"https://github.com/opengeos/datasets/releases/download/world/world_cities.geojson"
)
m.add_vector(url, zoom_to_layer=False, hover_style={"fillColor": "red"})
m
url = (
"https://github.com/opengeos/datasets/releases/download/world/world_cities.geojson"
)
m.add_vector(url, zoom_to_layer=False, hover_style={"fillColor": "red"})
m
Out[4]:
Task 2¶
In [5]:
Copied!
import temp_interpolation.foliummap as fmap
import temp_interpolation.foliummap as fmap
In [6]:
Copied!
url = "https://github.com/opengeos/datasets/releases/download/world/countries.geojson"
m = fmap.Map(center=(19, 75), zoom=5, height="300px")
m.add_vector(url, zoom_to_layer=True, name="Countries")
url = "https://github.com/opengeos/datasets/releases/download/world/countries.geojson"
m = fmap.Map(center=(19, 75), zoom=5, height="300px")
m.add_vector(url, zoom_to_layer=True, name="Countries")
In [7]:
Copied!
m.add_basemap("OpenTopoMap")
m.add_google_map("satellite")
m.add_layer_control()
m
m.add_basemap("OpenTopoMap")
m.add_google_map("satellite")
m.add_layer_control()
m
Out[7]:
Make this Notebook Trusted to load map: File -> Trust Notebook