Questions tagged [folium]

A python wrapper for the geo-mapping Leaflet.js library.

Folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the Leaflet.js library. Manipulate your data in Python, then visualize it in on a Leaflet map via Folium.

Documentation

Folium makes it easy to visualize data that’s been manipulated in Python on an interactive Leaflet map. It enables both the binding of data to a map for choropleth visualizations as well as passing Vincent/Vega visualizations as markers on the map.

The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. Folium supports both GeoJSON and TopoJSON overlays, as well as the binding of data to those overlays to create choropleth maps with color-brewer color schemes.

1307 questions
0
votes
2 answers

Is it possible to display locally saved images in Leaflet map popups?

Using python I have managed to extract the exref data (lat, long, etc) of photos into a pandas dataframe. I then generate a leaflet/folium map html file, which when opened in a browser, displays the georeferenced points where the photos were…
EllRob
  • 145
  • 1
  • 3
  • 11
0
votes
2 answers

Draw a closed and filled contour

I am trying to draw a closed contour an fill it up with (transparent or whatever) color with folium. The lacking docs are not helpful, any ideas how to do that ? This is my current code m = folium.Map(location=[46, 2], zoom_start=5) pts =…
Overdrivr
  • 6,296
  • 5
  • 44
  • 70
0
votes
1 answer

Need help writing code that will automatically write more code?

I need help with writing code for a work project. I have written a script that uses pandas to read an excel file. I have a while-loop written to iterate through each row and append latitude/longitude data from the excel file onto a map (Folium, Open…
Tappy
  • 87
  • 1
  • 8
0
votes
1 answer

Filter on diagonal geo coordinates

I am trying to filter my file on geo coordinates to keep only coordinates located in Manhattan using Python and Folium. I've tried setting my own limits: top_left = [40.806470, -73.973205] bottom_left = [40.709729, -74.035690] bottom_right =…
nickfrenchy
  • 293
  • 4
  • 16
0
votes
2 answers

'Conda list' shows folium is installed, but cannot "import folium" (anaconda x64)

I have installed folium using command 'conda install -c ioos folium=0.2.0' It looks to have installed correctly, and it showing on 'conda list' results. When I run python from cmdline, then attempt an import of folium, i get the following…
tcs
  • 353
  • 1
  • 3
  • 11
0
votes
1 answer

Folium program not running

I'm trying to make a python program that generate a leaflet web map with some point data as heatmap as well as some boundary data as GeoJson. When I run the code below in python I get some errors as follows: Traceback (most recent call last): File…
0
votes
1 answer

Why does a string gets split up into single characters with ' and , delimeters when using Folium heatmap generation?

I'm currently trying to use the Python and Folium to generate a heatmap on Leaflet.js and I'm getting some weird results. I read in the longitude and latitudes from a csv file and then try to generate 'heatmap entries' using Folium. If I print the…
Swedish Mike
  • 583
  • 1
  • 8
  • 23
0
votes
1 answer

Cannot use a python package installed using conda although the package exists (I specifically want a certain version)

I have trouble (ImportError: No module named folium) importing folium 0.2.0 development version (I want this version). I installed the package via conda install -c https://conda.anaconda.org/ioos folium as this conda page mentions…
user3368526
  • 2,168
  • 10
  • 37
  • 52
0
votes
2 answers

Folium Choropleth map marker is not working

I'm trying to follow the blog post from Domino lab, Creating interactive crime maps with Folium. And I found that the code base is too old to run the Folium's Choropleth map marker. Although older version on Domino platform seems working (2015),…
user3368526
  • 2,168
  • 10
  • 37
  • 52
0
votes
0 answers

iPython Notebook: import folium fails working with domino d3

I am trying to model data similar to this one: http://blog.dominodatalab.com/creating-interactive-crime-maps-with-folium/ but i am using iPython Notebook/Jupyter in the browser through my company's site. The man from the first domino blog said…
angisgrate
  • 497
  • 1
  • 4
  • 5
-1
votes
0 answers

Folium - how to Scroll down the page when scrollWheelZoom is false

Here is the code to create a map with folium with scrollWheelZoom=False, so that you can not use the mouse wheel to zoom. import folium m = folium.Map(location=[-23, -46], zoom_start=5, scrollWheelZoom=False, …
John Smith
  • 1,604
  • 4
  • 18
  • 45
-1
votes
0 answers

how to show pyqt5 folium map in desktop computer

I am trying to implement a folium map inside a pyqt5. I used the code first and second using my desktop computer. The pyqt5 window appears but the map will not show for both of the code. I try running it in another desktop but I got the same result.…
-1
votes
0 answers

Why Folium map doesn't appear on juptyer Notebook but with the same code appears on Collab?

I'm trying to show a map where each customer distribution or location while doing so the map won't appear in jupyter notebook the problem maybe within the browser so I used different browsers like chrome, opera and brave.while trying the same code…
-1
votes
1 answer

(SQL OR PYTHON) I would like to exclude all coordinates that are located in the Mediterranean sea

I have a set of coordinates in Egypt and some of these coordinates appear in the Mediterranean Sea when plotted in a map. There are many coordinates like this and I would have a difficult time removing them manually. So is there any way to do this…
Omar
  • 9
  • 2
-1
votes
1 answer

How to make a python folium interactive map with draggable legend and clickable items to zoom into the corresponding locations

I am trying to create an interactive map using python folium package. The feature I am looking for is, for a given list of locations, there are icons on the map, and a draggable legend (so that one can reposition the legend by dragging it using the…