Raster
In [ ]:
Copied!
from ipyleaflet import Map, ImageOverlay
m = Map(center=(25, -115), zoom=4)
image = ImageOverlay(
url="https://i.imgur.com/06Q1fSz.png",
# url='../06Q1fSz.png',
bounds=((13, -130), (32, -100)),
)
m.add(image)
m
from ipyleaflet import Map, ImageOverlay
m = Map(center=(25, -115), zoom=4)
image = ImageOverlay(
url="https://i.imgur.com/06Q1fSz.png",
# url='../06Q1fSz.png',
bounds=((13, -130), (32, -100)),
)
m.add(image)
m
In [ ]:
Copied!
import geohey
import geohey
In [ ]:
Copied!
m = geohey.Map()
url = "https://i.gifer.com/4j.gif"
# url='../06Q1fSz.png',
bounds = ((13, 100), (45, 130))
m.add_image(url, bounds)
m.add_layers_control()
# m.scroll_wheel_zoom = True
m
m = geohey.Map()
url = "https://i.gifer.com/4j.gif"
# url='../06Q1fSz.png',
bounds = ((13, 100), (45, 130))
m.add_image(url, bounds)
m.add_layers_control()
# m.scroll_wheel_zoom = True
m
In [ ]:
Copied!
from localtileserver import TileClient, get_leaflet_tile_layer, examples
from ipyleaflet import Map
# Create a TileClient from a raster file
# client = TileClient('srtm90.tif')
client = TileClient(
"https://github.com/opengeos/datasets/releases/download/raster/srtm90.tif"
)
# client = TileClient('https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif')
# client = examples.get_san_francisco() # use example data
# Create ipyleaflet TileLayer from that server
t = get_leaflet_tile_layer(client)
# Create ipyleaflet map, add tile layer, and display
m = Map()
m.add(t)
m.center = client.center()
m.zoom = client.default_zoom
m
from localtileserver import TileClient, get_leaflet_tile_layer, examples
from ipyleaflet import Map
# Create a TileClient from a raster file
# client = TileClient('srtm90.tif')
client = TileClient(
"https://github.com/opengeos/datasets/releases/download/raster/srtm90.tif"
)
# client = TileClient('https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif')
# client = examples.get_san_francisco() # use example data
# Create ipyleaflet TileLayer from that server
t = get_leaflet_tile_layer(client)
# Create ipyleaflet map, add tile layer, and display
m = Map()
m.add(t)
m.center = client.center()
m.zoom = client.default_zoom
m
In [ ]:
Copied!
import geohey
import geohey
In [ ]:
Copied!
m = geohey.Map(add_layer_control=False)
data = "https://github.com/opengeos/datasets/releases/download/raster/srtm90.tif"
m.add_raster(data, cmap="terrain", name="DEM")
m
m = geohey.Map(add_layer_control=False)
data = "https://github.com/opengeos/datasets/releases/download/raster/srtm90.tif"
m.add_raster(data, cmap="terrain", name="DEM")
m
In [ ]:
Copied!
m.layers[0].interact(opacity=(0.0, 1.0, 0.1))
m.layers[0].interact(opacity=(0.0, 1.0, 0.1))
In [ ]:
Copied!
m.layers
m.layers
In [ ]:
Copied!
client.center()
client.center()
In [ ]:
Copied!
client.default_zoom
client.default_zoom
In [ ]:
Copied!
In [ ]:
Copied!
In [ ]:
Copied!
In [ ]:
Copied!
m.layers
m.layers
In [ ]:
Copied!