Questions tagged [folium]

A Python library for producing maps with Leaflet.js

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
498 views

Get coordinates from Folium's feature LatLngPopup in Python

I am looking for a way to get coordinates from a marker/popup in Folium. I want to use the coordinates for further calculations. I know, that Folium is more for visualizing data and maps than getting ...
2
votes
0answers
117 views

Folium and timestamped GeoJSON issue , not reading the data correctly

I am having issues with Folium and using TimestampedGeoJson. I have the following dataframe structure below. I am trying to display this data with Folium and a time slider to be used on the date field:...
2
votes
0answers
249 views

Folium, make legend disappear when switching layer (LayerControl)

I created some legends in a map using Folium and Python using the html example by InLaw(1) in this answer. From that answer, I also manage to get this legend using a MacroElement from Branca (2), ...
2
votes
0answers
57 views

Is there a maximum number of polygons that can be plotted using Folium/Leaflet.js from a JSON file?

I have 15,000 parcels that I am trying to plot on a Folium map that is being served via Flask. I've imported the geojson as a layer, but when I include all 15,000 polygons, the map doesn't load. If I ...
2
votes
0answers
168 views

Save polygon on map

It is probably a noob question but I'm still a beginner with maps and these libraries. I used OSMnx, NetworkX and GeoPandas the draw a map with two polygons on it. Each polygon have the begin with ...
2
votes
0answers
710 views

Creating popups in Folium (Leaflet) for GeoJSON polygon layer

Looking through the Folium documentation I can't find how to add a popup to a polygon GeoJSON layer in Folium. Looking through the Leaflet documentation it seems like its possible, but I don't know ...
2
votes
0answers
5k views

display geojson file with folium (using geopandas to generate file)

I can not display properly a geojson file in folium using the GeoJson function. My file is made with geopandas, has some tags as fields and also a geometry field. In each row, in the field of geometry,...
1
vote
0answers
876 views

Specifying legend location in folium

I have a few choropleth maps in one Leaflet map using folium. However, in my output, my legends all congregate underneath one another and on one side where it blocks the 'control zoom' icon. Is there ...
1
vote
1answer
299 views

Dealing with NA-Values when plotting rasters with folium in python

I have some tiffs that I'd like to plot interactively in python using folium (or any other package, but I don't know of any). My problem is, that I have many na-values in the raster. At the moment I ...
1
vote
0answers
711 views

Getting pedestrian network with osmnx

Context I would like to extract into a network (i.e. a graph with a topology that can be used for routing), all pathways that can be 'legally' walked by pedestrians in an geographical area. I am ...
1
vote
0answers
994 views

Python - Issue to create choropleth map based on GeoJSON file: AttributeError

I'm trying to build a choropleth map, I cannot figure out why I get this error: AttributeError: 'NoneType' object has no attribute 'get' Here is my code: station_nb is a dataframe with values ...
1
vote
0answers
605 views

Including iframe in tooltip in Marker?

Can we include an iframe in tooltip in Marker? import folium var=open("yolo.html", "r") var2 = var.read() map = folium.Map(location=[19.179180,72.972580],zoom_start=6, tiles="Mapbox Control Room") ...
1
vote
0answers
829 views

Combine GeoJSON files into bigger shapes with external JSON to merge on

I have a shapefile of New York ZCTAs here I also have these neighborhood definitions that map zip codes to New York City Boroughs. I'd like to take my "all of New York zip code" data and: Clump up ...
1
vote
0answers
208 views

supercluster in folium map

Folium is the python wrapper of leaflet. It is possible in folium as well in leaflet to use markercluster when the number of gps grows. But markercluster have a limit of 50k gps , recently i found ...
1
vote
0answers
823 views

Change value of marker cluster using folium

I would like to know if it was possible to change the value displayed in the marker clusters wich, by default, display the number of markers it contains. I think this customization of marker cluster (...
0
votes
0answers
13 views

How to toggle Folium background map

I would like to hide/display the map when clicking somewhere. Does Folium have any parameters for that? folium.Map(location=[48.86088, 2.33765], zoom_start=8)
0
votes
0answers
7 views

How to integrate and plot both heatmap and quivers/arrows for different timestamps using folium?

I want to plot wind velocity heatmap and wind direction quivers together for different timestamps on top of a map using folium. I could not find any plugin for this integrated operation. Can you ...
0
votes
1answer
32 views

Inserting an URL link in marker's popup in Folium

I want to insert a live url link into my marker's popup in Python Folium but I don't know what class and code I need to use. my code is a simple one: folium.Marker(location[i], popup="www....
0
votes
1answer
127 views

How to add data slider bar control to Folium maps

I am making a choropleth map in Folium which displays data for certain age brackets. I would like to add a double ended slider letting users select the bottom and top of the age range to view. The ...
0
votes
0answers
49 views

Adding Folium GeoJsonPopup to a function

I have created a a function to create a Folium map that has colors scales based on the value, I am trying to add a option so that when I view/click and that region I could get a popup with the value ...
0
votes
0answers
84 views

Overlay a Raster on an Interactive Map in Python

I would like to know how I can overlay any raster created from a satellite product over an interactive map. This raster can be a single layer raster like a classification map or a RGB as shown below. ...
0
votes
0answers
58 views

How can I include HTML Audio in a Folium Marker popup?

I need to insert a audio HTML format, so when the people click in the marker, the popup will be a audio to listen. Is it possible?
0
votes
0answers
70 views

Updating folium changed the outlook of Popup box

Recently I updated folium and noticed some changes to the popup box. With the new update the popup box seem to have shrinked and the text is coming in separate lines, which should have appear in the ...
0
votes
0answers
17 views

Is there a way to use arbitrary, non “plugin” libraries inside Folium / JupyterLab?

It appears Folium supports certain plugins through folium.plugins Is it possible to use an arbitrary third-party library in Folium / JupyterLab? I want to use sidebar-v2. I know I can generate a map ...
0
votes
0answers
67 views

Folium for point data time series?

I have been searching this around for a while without success. But sorry for potential re-post. I have multiple layers of data points (coordinates), where each layer showing locations of an event in ...
0
votes
0answers
13 views

Leaflet layer box to appear larger

I want the layer containing box at the top right in a leaflet map to appear larger. When I open the map in mobile the layers panel appear smaller to read out. Is there a way to enlarge the layer box ...
0
votes
0answers
42 views

Using Folium to visulize PCA image raise "Error expected type string, actual type long,actual value 1

This is how I get the PCs at the specified scale and in the specified region: # Get the Principal Components (PCs) pcImage = getPrincipalComponents(centered, scale, region) #this return PCA image #...
0
votes
0answers
311 views

Displaying raster data using Folium (converting CRS)

I have SMAP data (https://nsidc.org/data/SPL3SMP_E/versions/3) that I need to display over an online interactive map. It uses the EASE2.0 grid which is EPSG6933, and as far as I am aware folium ...
0
votes
0answers
239 views

Specifying shapefiles for clusters and subclusters using Folium's MarkerCluster

For example, I'd like to zoom from country, to states, to counties. I don't see this option in the docs: class folium.plugins.MarkerCluster(locations=None, popups=None, icons=None, name=None, ...
0
votes
0answers
44 views

What factors need to be considered to decide the radius of a bubble map or is there a generic formula?

I recently started with GIS and I am learning as I go about implementing things. Take the case of JHU Dashboard or the first world map in this NYT article or the maps in this Guardian article, what I ...
0
votes
0answers
419 views

Visualizing queue length with colored Polylines - Folium

I have a bunch of PolyLines that i want to color code based on the length. I managed to change the color of the entire line, based on the length of a line segment (between 2 of 6 points), but I am ...
0
votes
0answers
580 views

Applying symbology to Folium (Leaflet) polygon layers

I am trying to create a Folium map in Python that includes multiple polygon and line layers. I would like to be able to change the symbology of each layer to differentiate it from the others. I've ...
0
votes
0answers
820 views

Visualize big data HTML file created with Folium

I have written a Folium map of a French city with the possibility of visualizing attributes information on click for each of its polygon which makes a huge file after 2 hours of calculation with the ...