Questions tagged [folium]

A Python library for producing maps with Leaflet.js

Filter by
Sorted by
Tagged with
2
votes
0answers
54 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:...
0
votes
0answers
44 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 ...
1
vote
1answer
44 views

How to change circle opacity in Folium?

I made my first choropleth map using Folium which worked quite well! However I would like to change the opacity of my circles to be a bit more opaque. How does one do this? There does not seem to be ...
0
votes
0answers
25 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
43 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. ...
3
votes
1answer
124 views

Adding graticules to Folium map [closed]

Are there any chances to add grid on Folium map? Something like on this picture.
1
vote
1answer
148 views

Mapping multiple polygons on Folium

I have a list of of coordinates that have areas mapped out on a map Zone zone_name users distinct_users geometry 1 A 635 51 POLYGON ((13.05584728590942 77....
1
vote
0answers
36 views

Adding a table to a web map made in Folium [closed]

I have made a nice Folium map however, the amount of data is small, but increasing. Right now it is grabbing a wildfire perimeter GeoJSON from NIFC and then getting points from my organization and ...
0
votes
0answers
45 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?
3
votes
0answers
292 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 ...
0
votes
0answers
94 views

Runtime disconnects in Google Colab when rendering Folium maps

I'm creating a figure in Google Colaboratory with folium. But when I try to output the figure using display() the runtime disconnects even though the html file of the figure, which I save using map....
1
vote
1answer
203 views

How to get a Folium layer to display on top while not stopping lower layers highlight functionality

I'm trying to create a Folium map where the top layer is a boundary plot (fill_opacity: 0) of coarser structure to the Choropleth on the bottom level. I'd like the coarser level with no highlight ...
0
votes
0answers
49 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
16 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
1answer
220 views

Different Leaflet / Folium markers for different zoom levels?

I'd like to use, say, a circle or map pin when zoomed out, and for this to change to a polygon / shapefile when zoomed in (specifying the zoom level at which the change occurs). Can Leaflet do this?
1
vote
1answer
680 views

`folium.GeoJson` displays all polygons in GeoDataframe but not individual ones

folium.GeoJson displays all the counties of New York State: import geopandas as gpd gdf = gpd.read_file("Counties_Shoreline.shp") m = folium.Map(location=[43.062776, -75.420884], tiles="...
0
votes
1answer
39 views

geemap doesn't display attributions

Is it normal that geemap doesn't display attributions in my notebook? Is there a way to add them? I'm running : import geemap m = geemap.Map(center=[40,-100], zoom=4) m.add_basemap('CartoDB.Positron')...
2
votes
0answers
177 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), ...
0
votes
1answer
395 views

Coordinate System Mismatch In Folium

I'm trying to get familiar with Folium library in Python. I wanted to make a web-map of Turkey. Framework uses EPSG:3857 Web Mercator CRS as default. I tried to use approximate coordinates at the ...
1
vote
1answer
2k views

What are Folium style_function parameters

I'm trying to do a uniform style for each polygon, but I want to know further about what I can do with Python library Folium Style_function. What can I put in the style variable? Where are the ...
1
vote
0answers
635 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 ...
0
votes
1answer
188 views

Collection asset not found

I am using this code BANDS=['B1', 'B2', 'B3','B4', 'B5', 'B6', 'B7'] area = ee.FeatureCollection('ft:1GxT2Q22KIGDjLFY1J11IX8lTAQPIoNyvBsG2fX0') collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR'...
0
votes
0answers
52 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
12 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 ...
1
vote
1answer
1k views

How can I overlay text on a map, without a marker or textbox, using Folium?

I want to place text anywhere, as though it were part of a tile, no text box around it, and "shown on opening" (ie, show=True). I don't see any text overlays in the documentation: https://python-...
1
vote
1answer
120 views

How do you create a “donut hole” / cut-out-effect using folium?

I've tried adjusting parameters and changing the order in which these circles are added. I can't get the interior circle, or "hole", to remain transparent. The outer circle always predominates. m = ...
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
247 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
192 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, ...
1
vote
1answer
236 views

Visualising layer properties of a GeoJSON polygon layer in Leaflet

In a Leaflet GeoJSON polygon layer, I want a popup information box, showing attributes of each of the polygon properties. So the final output should show the Country Name, Area, Population etc ...
1
vote
1answer
1k views

Adding circle polygon to folium map (using OGR and Python) creates an oval - why?

I am new to OGR and Folium but learning fast. In short, I have an issue which I think might be a projection problem. Basically, I have three circles plotted in folium that work fine. Then I have a ...
0
votes
0answers
43 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 ...
1
vote
1answer
1k views

Turn Layer off by default in Leaflet LayerControl

In the following python code I have three data layers while I need to show only two of them by default as the program executes. So the Places and District layer should be checked as the map is opened ...
1
vote
1answer
256 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 ...
0
votes
3answers
698 views

Google Earth Engine with Folium and Sentinel-1 Plotting

I'm attempting to plot Google Earth Engine Sentinel-1 SAR data in a Jupyter notebook with Python and Folium. To do this I'm trying to combine two pieces of documentation: EE Python Install -> Map ...
2
votes
1answer
325 views

Integrate sidebar with Python generated Leaflet map?

I have this map: link It was generated through Python code, not via JS directly. I want to add the Leaflet sidebar plugin within it, but it doesn't seem to work. As you can see in the github repo ...
2
votes
1answer
312 views

how to display a ee.Feature using folium?

I try to display a country delimitation in a jupyter notebook using folium. I try the following code #load country from LSIB countries = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017'); #subset the ...
1
vote
0answers
191 views

Folium choropleth plots markers [closed]

I have this code to plot a choropleth from a GeoPandas DataFrame. def create_gpd_dataframe(self d = {'Angle of point': yard_list, 'Latitude': yard_lat_list, 'Longitude': yard_lon_list} ...
2
votes
0answers
52 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 ...
1
vote
2answers
2k views

Trouble plotting Earth Engine images with Folium using Python

I am trying to plot an earth engine image using Python and the Folium package as described in the Python docs for Earth Engine. I tried running the example code given and I can't seem get the image to ...
2
votes
0answers
152 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
1answer
2k views

Folium - plugins.HeatMapWithTime no longer produces an output

I have been creating Heat Maps with a Time dimension using both test data and my own datasets using the Folium libraries in Python. I am using Python 3.5 to do this, and the results have been good. I ...
1
vote
0answers
623 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 ...
0
votes
0answers
385 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 ...
1
vote
0answers
948 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 ...
2
votes
0answers
690 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 ...
0
votes
0answers
546 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
2answers
1k views

Add custom maps in Mapbox as tile layer in Folium [duplicate]

I was trying to create a map in Folium using a custom map built tile layer created with Mapbox Studio (using 3 different datasets and a satellite basemap). I was wondering if there is a simple way to ...
0
votes
0answers
768 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 informations on click for each of its polygon which makes a huge file after 2 hours of calculation with the ...
0
votes
1answer
550 views

Search plugin of Folium doesn't appear [closed]

I'm trying to reproduce the following jupyter notebook : https://nbviewer.jupyter.org/github/jtbaker/folium/blob/geojsonmarker/examples/plugin-Search.ipynb But once I'm trying to create the map I ...