Questions tagged [folium]

A Python library for producing maps with Leaflet.js

Filter by
Sorted by
Tagged with
1
vote
0answers
29 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} ...
0
votes
0answers
52 views

Python, Folium choropleth, plot by value

I have a GeoPandas dataframe: self.geopd = gpd.GeoDataFrame(df, geometry=gpd.points_from_xy(df.Longitude, df.Latitude)) Angle of point Latitude Longitude geometry 0 ...
1
vote
0answers
13 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
346 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
45 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 ...
1
vote
1answer
431 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
140 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
206 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
262 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 ...
0
votes
0answers
300 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 dont know how ...
0
votes
0answers
289 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
1answer
531 views

Add custom maps in Mapbox as tile layer in Folium

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
417 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
355 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 ...
1
vote
2answers
2k 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
vote
0answers
329 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
348 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
478 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
542 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
3k 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,...
4
votes
1answer
1k 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
576 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
180 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
1answer
782 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 ...
2
votes
2answers
47k 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 ...
0
votes
1answer
3k 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 ...
1
vote
1answer
4k 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
1k 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
2k 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
152 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
1k 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"]) ...
3
votes
2answers
11k 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
640 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
573 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
1answer
1k views

Adding HTML to folium popup in a 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
488 views

Projection (Datum?) slightly off for plotting Geopandas [closed]

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). ...
3
votes
1answer
859 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
4k 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 ...
8
votes
1answer
6k 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
15k 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
819 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
647 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
6k 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 ...