Folium
In [ ]:
Copied!
import folium
m = folium.Map(location=(45.5236, -122.6750))
import folium
m = folium.Map(location=(45.5236, -122.6750))
In [ ]:
Copied!
m
m
In [ ]:
Copied!
import athigeo
import athigeo
In [ ]:
Copied!
import athigeo.foliumap as athigeo
import athigeo.foliumap as athigeo
In [ ]:
Copied!
m = athigeo.Map(center=[30,-100], zoom=4)
url = "https://github.com/opengeos/datasets/releases/download/raster/srtm90.tif"
m.add_raster(url, colormap="terrain", name="SRTM90", opacity=0.5)
m
m = athigeo.Map(center=[30,-100], zoom=4)
url = "https://github.com/opengeos/datasets/releases/download/raster/srtm90.tif"
m.add_raster(url, colormap="terrain", name="SRTM90", opacity=0.5)
m
In [ ]:
Copied!
m.save("raster.html")
m.save("raster.html")
In [ ]:
Copied!
from localtileserver import TileClient, get_folium_tile_layer, examples
from folium import Map
# Create a TileClient from a raster file
# client = TileClient('path/to/geo.tif')
client = examples.get_san_francisco() # use example data
# Create ipyleaflet TileLayer from that server
t = get_folium_tile_layer(client)
# Create ipyleaflet map, add tile layer, and display
m = Map(location=client.center(), zoom_start=client.default_zoom)
t.add_to(m)
m
from localtileserver import TileClient, get_folium_tile_layer, examples
from folium import Map
# Create a TileClient from a raster file
# client = TileClient('path/to/geo.tif')
client = examples.get_san_francisco() # use example data
# Create ipyleaflet TileLayer from that server
t = get_folium_tile_layer(client)
# Create ipyleaflet map, add tile layer, and display
m = Map(location=client.center(), zoom_start=client.default_zoom)
t.add_to(m)
m