Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Folium icon list

Tags:

python

folium

Is there any list of icons available that I can use in a expression like I use home in this one?

folium.Marker(location=[0,20], icon=folium.Icon(color='lightgray', icon='home', prefix='fa')).add_to(m)
like image 258
Hugo Avatar asked Dec 11 '18 09:12

Hugo


People also ask

What other colors are available in the Folium library?

You can use: ['red', 'blue', 'green', 'purple', 'orange', 'darkred', 'lightred', 'beige', 'darkblue', 'darkgreen', 'cadetblue', 'darkpurple', 'white', 'pink', 'lightblue', 'lightgreen', 'gray', 'black', 'lightgray'] icon_color (str, default 'white') – The color of the drawing on the marker.

Is Folium a Python library?

Folium is a powerful Python library that helps you create several types of Leaflet maps. By default, Folium creates a map in a separate HTML file. Since Folium results are interactive, this library is very useful for dashboard building. You can also create inline Jupyter maps in Folium.

How do I show the Folium map in Python?

To set up, open a new notebook and run the installation for both Folium and pandas by running the command below on a new cell. On the next cell, import the required libraries and read the dataset. The next step is to set up a map and view it. In a new cell, copy the code below.

Which of the following is a tile style of Folium maps?

Folium allows us to create maps with different tiles like Stamen Terrain, Stamen Toner, Stamen Water Color, CartoDB Positron, and many more.


1 Answers

You can find a full list here:
https://fontawesome.com/icons?d=gallery
use with: prefix='fa'

or the glyphicon icons of Bootstrap that are built-in and standard, thus without prefix needed. https://getbootstrap.com/docs/3.3/components/

like image 143
Tombier Avatar answered Sep 20 '22 08:09

Tombier