Questions tagged [dash-leaflet]

34 questions
3
votes
0 answers

remote server: dash_leaflet + javascript through a "No match for [dashExtensions.default.function0]" error

I'm trying to display some maps using GeoJSON from dash_leaflet, and it works fine, but for performance reasons I have to use javascript to change the way the points are displayed. Locally it works fine, but as soon as I upload my code to…
3
votes
1 answer

Dash Leaflet click_feature event

I have been using dash leaflet for creating my own dashboard with maps, and it has been great to be able to visualize things with an interactive map. However, there is one thing that I have been stumped on a while for how to deal with a click…
2
votes
1 answer

How to update an input component from a callback in Dash app

Context : I have a Dash app with a dropdown and a map. The map displays 3 markers with IDs : '01', '02' and '03'. I am able to click on a marker and return its ID through a callback. The dropdown enables me to choose a marker by its ID. What I want…
gdevaux
  • 2,308
  • 2
  • 10
  • 19
2
votes
1 answer

Mapping dash-leaflet controls to other buttons outside the map

Dash-leaflet allows adding controls, such as ZoomControl, MeasureControl, or EditControl to map layers. I was wondering if it is possible to use Dash buttons to perform the same actions as these controls. For example, is it possible to zoom in/out…
prl900
  • 4,029
  • 4
  • 33
  • 40
1
vote
1 answer

Add popup in dl.GeoJSON Dash-leaflet (Python/Dash)

I have been using dash-leaflet for 1 month and it is a good library for showing interactive map with filter widget in dash. But I have question, how do I add popup in polygon? especially in dl.GeoJSON one? Here is my code import dash from dash…
naranara
  • 151
  • 1
  • 10
1
vote
1 answer

App layout and callback for a Dash-Leaflet map

I am adding a Dash-Leaflet map to a callback and want to know how to setup up the app layout. Below are the modules and datasets used. import dash import plotly.express as px from dash import Dash, dcc, html, Input, Output, State, dash_table from…
1
vote
0 answers

How can I add the loading animation on top of a map in Python Dash Leaflet?

I have some Dash Leaflet code that when I click on the map, it puts a marker on the map. It then tells me where is the closest shopping mall to the marker on the map. It draws a straight line from the marker to the closest shopping mall But it takes…
1
vote
1 answer

How to assign multiple inputs and outputs to app.callback with hover_feature or click_feature in dash-leaflet?

I'm having trouble getting multiple inputs and outputs to work in Dash-leaflet. Essentially, I want to do the following: on a mouse click place a marker on the map, and when hovering over a country highlight an area of the map with a polygon and…
0
votes
0 answers

Change popup figure by click on map with poligon geojson data

I create a dashboard to show map that are saved in director that I want to show when click in polygon. I've done it however I didn't achieve to change map by attribute id, in order to appear which is the file with value that correspond to polygon id…
dogosousa
  • 151
  • 9
0
votes
0 answers

Write the callback function to colour a map with dash leaflet

In the application (visualization of natural disaster data) I am working on, I have to color the countries in the map according to a well specified data, and for that I have written the following code: disaster_data =…
M_EL
  • 1
0
votes
1 answer

Mark selected states in dash-leaflet map

I'm creating US map and I want to make it interactive. If the user clicks on certain state it get highlighted, and if another state is clicked it will be highlighted also. Finally if the user clicked on a highligted state, the highlight will be…
0
votes
1 answer

increase click tolerance in dash-leaflet

I am using dash-leaflet and I want to increase the area around my features in which they become clickable. As far as I understood, in leaflet this is possible with the canvas renderer and its option "tolerance". However, I could not find out how to…
mr. creme
  • 3
  • 1
0
votes
0 answers

Reuse output as input callback with Dash

I am a begginer with Dash. I tried to make an interactive application which retrieve a list of public companies for a given city, then to display them in a DashTable and in DashLeaflet map with markers. I have an input filled by user (the city), and…
Srn
  • 1
  • 1
0
votes
1 answer

Dash-leaflet error using dash_table and geopandas

I am a begginer to use dash-leaflet. I try to make a dashboard with displaying a (geo)DataFrame on a dash_table and on a dash_leaflet.Map I manage to do one or the other but not the both. In this example below, I display the dash_table and it works…
Srn
  • 1
  • 1
0
votes
1 answer

How do I update GeoJSON/Leaflet in Python without re-rendering

I am using dash-leaflet and adding things to the map using GeoJSON in python. I am adding a lot of objects (100-ish) objects often. The objects are almost entirely the same list, with only a few things added or removed each run. As of now, I only…
jrk0414
  • 144
  • 1
  • 1
  • 11
1
2 3