Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [folium]

A Python library for producing maps with Leaflet.js

0
votes
0answers
46 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
40 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 ...
0
votes
1answer
32 views

Click event on maps with Folium and information retrieval

I was wondering if there is a way in Folium to get the information on an entity we click on with Folium? I'd like the map to either open a tab with the attribute information or just send back ...
-1
votes
0answers
12 views

Dataset of lines at n miles from the coast

I'm using Folium to generate some interactive maps with ocean data. One of the restrictions I am facing is that the objects, I plot has to be at-least at 5, 6, .., n miles from the coast, hence I am ...
0
votes
0answers
63 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") ...
0
votes
0answers
65 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 ...
2
votes
1answer
242 views

Implementing a complete web mapping project with folium

I am quite new in web mapping and I was wondering if I could implement a complete web GIS using just folium and pandas and ... and I mean that is it possible to do it without any geospatial web ...
1
vote
1answer
167 views

EPSG conversion and image rotation in folium

I'm using Python's folium library (which uses Leaflet) to display images over a map. However, my original data uses EPSG:3035 and folium uses EPSG:4326 (WGS84). There is a rotation when converting ...
2
votes
0answers
1k 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,...
2
votes
1answer
392 views

Python folium package for 'satellite' map

I am trying to have a zoomable satellite map for my Transportation network analysis. Other free maps all OK but could not get satellite to work. I am using: token = 'pk....
0
votes
1answer
325 views

How to display large geospatial data in a jupyter notebook with style and tooltip?

I have a large amount of data stored on a postgreSQL database (RDS) with the PostGIS extension enabled. We are currently doing quality assessment of the data and therefore I would like to inspect/...
1
vote
0answers
133 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 ...
0
votes
1answer
362 views

(OSMNX, Folium) Plotting and Isochrone on a Folium Web Map

I am trying to plot an isochrone map like the one in this example onto a Folium Web Map. I understand how to set up the colors for time/edges/nodes/polygons... I just don't understand how I could get ...
0
votes
0answers
251 views

Is wms folium plugin deprecated?

I am trying to make an interactive map using python Folium library and Jupyter notebook. When I try to add a wms layer the following message is displayed: AttributeError: 'Map' object has no ...
0
votes
0answers
167 views

Folium Choropleth Doesn't Display with External Esri Services

Building off of the post I have here I am attempting to move on from the use of a local geojson and now combine two external geojson files in a folium choropleth map using Jupyter Notebook. I am ...
2
votes
2answers
32k views

error message 'module' object has no attribute 'MarkerCluster'

I'm trying to create a very simple leaflet/folium map using python. It works without marker clusters (all the relevant locations show up on the map), but when I try using MarkerCluster I get the ...
-1
votes
0answers
460 views

Folium marker clusters not working as expected

I have a problem. I can't use the MarkerCluster and LayerControl together. I need to add the MarkerCluster to the following code but unfortunately something still does not work. Can anyone tell me how ...
0
votes
1answer
2k views

Using Folium HeatMapWithTime Plugin?

I am using pandas, and folium to replicate the following example, but with my CSV data to produce a heat map. Here's what my data looks like: and here is the code I am using currently: import ...
0
votes
1answer
2k views

Folium Heat Maps

I am trying to replicate the following heatmap from this link. Seems simple, but my html output is just a tile map with none of the data I'm trying to represent. Here's what my csv data looks like ...
1
vote
0answers
562 views

How to use custom projection in Folium

I think Folium uses EPSG3857 by default, but I have a custom .prj file that I need to use. Is there a way to load that in? I'm not reading in the projection file at all right now. This is my current ...
0
votes
1answer
937 views

Line break in a Popup box in Leaflet

How can I put a line break in the popup window in the following statement? I am trying \n and but its not working. for lt, ln, el, plc in zip(lat, lon, elev, pl): fga.add_child(folium.Marker(...
6
votes
1answer
141 views

Appropriate False return statement?

I wanted the following Code to show green icons when the value is < 6.0 and nothing shown when it is >= 6.0 But it is returning Red icons for values >= 6.0 as in screenshot attached. What should be ...
0
votes
1answer
828 views

Understanding ValueError from folium?

I was trying the following line of codes in python (that I learnt from a tutorial), import folium import pandas data=pandas.read_csv("Volcanoes.txt") lat = list(data["LAT"]) lon = list(data["LON"]) ...
2
votes
2answers
6k views

Fill color not showing appropriately in folium?

The following code should have shown different colored circles in a map. But my result was circles with no color at all. import folium import pandas data=pandas.read_csv("Volcanoes.txt") lat = list(...
1
vote
0answers
441 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 (...
1
vote
1answer
345 views

Displaying SHOM WMS in Folium / Leaflet map

I'm trying to display this WMS in Leaflet / Folium: http://services.data.shom.fr/INSPIRE/wms/r I use the following code: import folium center=[49.9765229931438, 1.1902348134956244] def inline_map(...
1
vote
0answers
715 views

HTML in folium popup, for loop

I want to put HTML formatting into a folium map popup. How do i format the html popup INSIDE my FOR loop??? My code: import folium import pandas from folium import IFrame data=pandas.read_csv("...
0
votes
2answers
328 views

Projection (Datum?) slightly off for plotting Geopandas. Datum issue?

I'm trying to plot some polygons I obtained from a 2002 Census in Chile. I'm loading them to geopandas, converting them to epsg='4326' and then sending them to Folium (which is a wrapper for Leaflet). ...
4
votes
1answer
676 views

Folium/Leaflet display marker without radius?

I would like to plot a point in a Folium map. Not a circle, just a point (i.e. without a radius). I would like for them not to zoom in if I do, but just stay as a point. I have fmap....
2
votes
3answers
3k views

Choropleth map with GeoPandas and Folium error

I am trying to generate a leaflet Choropleth map as in https://pypi.python.org/pypi/folium. I am importing a shapefile as a geoDataframe which later on I am converting to a json file that I can ...
6
votes
1answer
4k views

How do I use mapbox tiles with folium?

I cannot find correct usage for using custom mapbox tilesets with folium. From the documentation, "Folium also supports Cloudmade and Mapbox custom tilesets- simply pass your key to the API_key ...
3
votes
1answer
3k views

Folium and MarkerCluster?

I'm trying to use Folium but am having difficulty adding multiple points to a MarkerCluster in one fell swoop. Documentation is... sparse, so I'm not sure how to proceed. This recreates the problem ...
7
votes
2answers
10k views

How can I include HTML in a Folium Marker popup?

I'd like to include an anchor tag in a Folium Marker popup so that I can click through to another page. Here's my code def poptext(row): return "<a href=\"" + row['Feed'] + "\">" +...
0
votes
1answer
601 views

JSONs made from shapefiles are not plotting (using folium or Leaflet alone)

My goal is to plot two shapefiles as layers on an interactive map. The files I'm using live at https://github.com/AnnaMag/maps. I transformed shapefiles to .geojson using ogr2ogr -f ... e.g. ...
1
vote
1answer
557 views

Populate markers in leaflet with tweets and tweet location using python

I am iterating over twitter using python, the user inputs a topic to search for on twitter and then the location to view on the map in leaflet. The leaflet map is created automatically in the browser. ...
2
votes
1answer
4k views

Using custom icon markers with Folium?

Given that Folium builds on the Leaflet JS library, I was wondering if it could provide the same functionality as Leaflet for custom icon markers. Scanning through the tutorial here, I'm somewhat ...