Downloaded image isn't showing up on the map #101
-
Hello, m.layers[-1].visible = False The downloaded image isn't showing up in the map, only the map is being shown while running it on my PC. However, in the google colab it is working fine. Can you suggest what could be the problem? Output of my PC: https://drive.google.com/file/d/1Ac8r0aXp0u0Wt4GeG7ckG8E79kweb55X/view?usp=drive_link |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Environment Information
|
Beta Was this translation helpful? Give feedback.
-
Try the following example. If it does not work, it is a localtileserver issue. You need to open an issue on the localtileserver repo. https://localtileserver.banesullivan.com/ from localtileserver import TileClient, get_leaflet_tile_layer, examples
from ipyleaflet 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_leaflet_tile_layer(client)
# Create ipyleaflet map, add tile layer, and display
m = Map(center=client.center(), zoom=client.default_zoom)
m.add_layer(t)
m |
Beta Was this translation helpful? Give feedback.
Try the following example. If it does not work, it is a localtileserver issue. You need to open an issue on the localtileserver repo.
https://localtileserver.banesullivan.com/