Questions tagged [folium]
A Python library for producing maps with Leaflet.js
160 questions
2 votes
1 answer
172 views
Unable to align TIFF layer with world map
I am trying to align (perfectly and properly) a TIFF file with either Google's map or the OpenStreetMap (or any other, if there are any decent ones). I have tried so many different version, some ...
0 votes
0 answers
46 views
Folium - ImageOverlay behaviour with WG84 rasters
I have an unexpected result when using this code (the raster can be downloaded there: https://www.transfernow.net/dl/20250110vSXncBM0): raster_path = '2019-06-15.tiff' with rasterio.open(raster_path) ...
2 votes
2 answers
212 views
Find difference between two lines
I am trying to find a distance that does not overlap. In the image, I have two lines plotted in folium. I want to calculate the distance where the red line is not covered by the blue line. For context,...
1 vote
0 answers
311 views
Using GeoJSON timestamped Folium plugin for data in milliseconds
I have data from different points that a car pass by, and a need to put them in a map, but one by one using their UTC time. The data goes from one millisecond to another, and I need to reflect that. ...
0 votes
1 answer
144 views
Folium keep_in_front not working for TileLayer when mixed with other layer types
I am trying to add the TileLayer for the map labels on top of other overlays in Folium. The keep_in_front command keeps the labels on top of the other TileLayers, but not on top of the other overlays (...
1 vote
1 answer
311 views
Plotting ImageOverlay on Folium maps fails
I'm making a project. I need to open a local GeoTIFF file and load it into the Folium map with PyQt5. For now, instead of GeoTIFF, I took a numpy array. If it is 500,500,3 shape, everything is fine. ...
1 vote
0 answers
126 views
Ipyleaflet map crashes Jupyter notebook and says out of memory
I wrote a code to show some points on ipyleaflet map that will be updated automatically. at first, the map shows fine, but despite removing markers after a certain time (eg. 72 hours) the notebook ...
1 vote
0 answers
451 views
Adding multiple choropleth layers on a folium map as radio buttons
I am trying to create an interactive folium map in python and save as a html file. I want to add OpenStreetMap as basemap and add 2 choropleth layers onto the map. This is what it looks like so far: ...
0 votes
1 answer
454 views
Folium.geojson Multiline String doesn't wrap around the map, creates crossing lines across the map
I am having an issue using Python and folium regarding GeoJSON features. I made a simple map using folium and displayed tsunami information as well as specific colors for the different earthquake ...
2 votes
2 answers
1k views
Customizing layer control with CSS classes in Folium Leaflet?
I am working with creating a folium map within streamlit. I like the ControlLayer() functionality that folium provides, but I would like to be able to customize it a bit more. I found this comment ...
1 vote
1 answer
237 views
Map moves every time a marker is added in ipyleaflet
I am trying to create a map that is updated continuously with received data and I have a problem. the map moves every time a new marker is added and it is making it useless as it should be zoomed to ...
0 votes
1 answer
721 views
Landsat imagery showing up as white in GEE
I am trying to learn GEE's Python API through Google Colab. Right now I am trying to map Landsat using folium and geehydro. I was able to implement NDVI just fine, and it displayed exactly as I ...
3 votes
1 answer
2k views
Control Layer Order/Z-Index of Custom DivIcon() Marker in Folium Map
I'm working on a project where I'm using Folium to create an interactive map in Python. I want to use a marker that can visualize directional data; however, Folium doesn't seem to offer any and I had ...
0 votes
0 answers
2k views
Remove marker from folium map
With the following code I am able to add marker to the folium maps: import folium import time m = folium.Map(location = [13.0, 77.0], tiles=None, zoom_start = 5, control_scale = True) img_path = '...
2 votes
0 answers
754 views
How to rotate folium CustomIcon
I have dataframe; it has name, latitudes, longitudes and heading. Heading value will between 0 and 360. According to the angle we need to rotate. I printed my dataframe items inside folium map in ...