Questions tagged [ipyleaflet]

44 questions
0
votes
0 answers

How to create on click popup which includes plots using ipyleaflet, Folium or Geemap?

I like getting a popup when I click on the map. The popup includes a plot that I get based on the coordinates of the click. In the code below I used Folium to manually do this: import folium import pandas as pd import altair as alt center =…
Ress
  • 667
  • 1
  • 7
  • 24
0
votes
1 answer

ipyleaflet Search Control never successfully searches

I've followed the examples but I can never get the ipyleaflet SearchControl to work in my JupyterLab notebook: import json from ipyleaflet import Map, GeoJSON, SearchControl, LayerGroup m = Map(center=(40, -100), zoom=10) data = {} # fill data as…
armani
  • 93
  • 1
  • 10
  • 23
0
votes
0 answers

Plotting contour over a map (Plotly)

I wanted to plot a dataframe on an interactive map (openstreetmap) but the code I have is made to be points on the map and I would like to have "spots" like contour plotted on the map how can I change the code? fig = px.scatter_mapbox(df, lat="lat",…
userpython
  • 33
  • 5
0
votes
1 answer

Mapping Antarctic Polar Stereographic data in ipyleaflet

I am trying to plot Antarctic Sea-Ice EPSG:3031 data using ipyleaflet like so: from ipyleaflet import Map, WMSLayer, basemaps wms = WMSLayer( url='http://geos.polarview.aq/geoserver/wms', layers='polarview:iceedgeS15', …
Sean C
  • 3
  • 2
0
votes
0 answers

ipywidgets working in JupyterLab but do not appear in Voila

Ok, this is my first post. I've been working on building a dashboard for my students, to let them work with economic models interactively. I've used JupyterLab for years and have some experience with ipywidgets. Recently while looking for a way to…
0
votes
0 answers

How to change ipywidget animation speed during animation

I am using jupyter notebook to animate a marker that moves along an ant path. I am using ipyleaflet and ipywidgets. I have added a slider widget (speed_slider) to my map, to allow me change the speed of the animation. My animation is using a for…
Oao
  • 121
  • 7
0
votes
0 answers

How to add legend in leaflet Map

I have a leaflet map and I would like to add a legend. In the map I have many filter which can return many lines colors. For example one can filter by lanes and got four colors. I tried this (solution found on leaflet documentation) but I didn't…
aba2s
  • 452
  • 2
  • 18
0
votes
1 answer

Callable object not callable

I have created a function that generates a map with the user's lat and lon and returns the next time that the International Space Station will be over the user's location. I have created a button and using the on_click function should generate the…
LEJ2474
  • 43
  • 6
0
votes
0 answers

Can't see USGS WMS layers in ipyleaflet (leaflet.js for python)

Trying to use ipyleaflet (leaflet.js for python/jupyter widgets) to view a WMS layer representing 1m DEM availability. Source is the USGS National Map. End goal is to make a tool where I can draw a bounding box, download and process DEM data. Need…
0
votes
1 answer

Plotting contours with ipyleaflet

Trying to get away from Basemap for plotting contours on maps, and in particular doing this from a Jupyter notebook, I came across this discussion related to folium: https://github.com/python-visualization/folium/issues/958. Hey! I thought - this is…
maschu
  • 1,355
  • 1
  • 18
  • 33
0
votes
1 answer

the map to show rs image have a bug. the topright layercontrol has the image name, but don't show in the map?

as the title contents, the image url transmit to ipyleaflet.TileLayer method and return a tilelayer use to self.add_layer(tilelayer), use mode to show a image in the map, the part code following: to run code show map he map topright have a…
0
votes
0 answers

Add Polygon programmatically in ipyleaflet maps drawing control

Is there a way to add a known polygon to the Draw interface of a leaflet map ? I search for the feature_group property with : print(m.__dict__) but didn't find anything. I assume I can add one using geojson format I just don't know where.
Pierrick Rambaud
  • 1,726
  • 1
  • 20
  • 47
-1
votes
1 answer

How to add an Ipyleaflet map to a PyQt5 application?

I've created an app using PyQt5 that (amongst others) displays a map. For the map widget, I've used pyqtlet, but I'm starting to realize that this package is really limited (I want to show different layers, to use a draggable marker, etc.), so I…
Laurent
  • 1,914
  • 2
  • 11
  • 25
1 2
3