-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot view tiles in remote Jupyter environment #66
Comments
You need to provide information about OS and env. Providing the sample dataset would be helpful.
|
Screenshots and code would also be helpful |
import localtileserver
print(localtileserver.Report())
|
from localtileserver import get_leaflet_tile_layer, TileClient
from ipyleaflet import Map
# First, create a tile server from local raster file
tile_client = TileClient('/DISK003/SPATIAL_ANALYTICS/landuse.tif')
# Create ipyleaflet tile layer from that server
t = get_leaflet_tile_layer(tile_client)
# Create ipyleaflet map, add tile layer, and display
m = Map(center=tile_client.center())
m.add_layer(t)
m |
the tile layer id not getting displayed in map |
Would it be possible to share the
I do not understand what you mean... could you include screenshots? |
landuse.tiff.zip |
attached the zip file of the tif as it was not allowing to attach tiff directly |
you can try to visualize the tif in QGIS as a reference |
I am having no issues visualizing this raster with Here is the code I used: from localtileserver import get_leaflet_tile_layer, TileClient
from ipyleaflet import Map
# First, create a tile server from local raster file
tile_client = TileClient('landuse.tiff')
# Create ipyleaflet tile layer from that server
t = get_leaflet_tile_layer(tile_client)
# Create ipyleaflet map, add tile layer, and display
m = Map(center=tile_client.center())
m.add_layer(t)
m and a screenshot of Jupyter: further, the command-line utility has no issue showing this in CesiumJS: localtileserver landuse.tiff @MATRIX4284, in order to help you further, I need you to specify exactly what is going wrong:
I'm not sure what you mean by this. Would you please included screenshots of what is happening and describe what you expect to happen? |
how come it is possible i am ruuning the same set of commands and i can see only the basemap but not any other layer |
@MATRIX4284, I'm not sure. Are you seeing any errors? In the JavaScript console of your browser are you seeing any errors? in the network tab of the dev tools in your browser, are you seeing any 404s? Is it possible you are running on a remote system where your web browser might not have access to the port on which |
As you can see i can see basemap layer but not the layer in showing the land usage.I am not abe to comprehend the reason why it is not showing up in my machine despite similar code snippets used. |
is there any dependency on chrome version ?? |
os:ubunyu 16.04
yes i am using remote system where my jupyter is running at port 15000 .I am connecting to jupyer by ip:port |
i just tested the docker with the volume the output is showing with |
but python module when installed on os is not showing up the stuff neither the tile layer is showing up in jupyter |
Aha. This is a duplicate of #29 which isn't fully solved. banesullivan/localtileserver-demo#1 also tracks this Because you are running in a remote environment, you must set up your server to expose the port the on which tile_client = TileClient('landuse.tiff', port=8000) I don't have a good solution to this use case (yet). |
Release This can get messy/complicated and I haven't documented (at all), but essentially
This effectively remaps the tile requests coming from ipyleaflet from You can also use/see
cc @giswqs I will follow up in banesullivan/localtileserver-demo#1 with a demo and soon release |
@banesullivan You rock! This is exciting! Can't wait to try it out. |
Yep! You should be able to set env variable no matter the user |
I just pushed
|
I will test after setting the variables accordingly |
This was further improved in #67 such that only setting:
I will release 0.4.2 shortly |
@MATRIX4284, I'm going to assume your issue has been resolved and close this issue. Please reach out if you are still having issues |
Hi @banesullivan @giswqs thanks for you support .Now i can see my tiles in jupyter .Thanks a ton |
Raster layer map not displayed for TileClient with local files.
The raster layer comng from local file is not being displayed on map
The text was updated successfully, but these errors were encountered: