-
Notifications
You must be signed in to change notification settings - Fork 362
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
Image overlay using local jpg/gif #550
Comments
@davidbrochart Thank you very much for the examples. I was able to adapt the examples and create a function to display local images on the map. It can now display gif nicely. Thanks.
|
Using a data url will definitely be slower. Note that you can provide a path to a local file, but the behaviour is different in Jupyter Notebook and JupyterLab, see https://ipyleaflet.readthedocs.io/en/latest/api_reference/local_tile_layer.html for a comment about local paths. Maybe this should be added in the Image Overlay documentation page. Same for marker icons. |
@martinRenou This is great to know. I just tested it, and it works with the relative path but not an absolute path. At least the relative path works so that I don't have to convert path to URL. |
It seems ImageOverlay and VideoOverlay can only display images/videos on the Internet via the
url
parameter. It would be nice if it can also display images/videos stored locally.The text was updated successfully, but these errors were encountered: