Mapping with folium

by Dane Miller

Here is a very easy to use interactive mapping module in python called folium. It is a fast way to make maps while the map can be interactive.

Click on the link to open the map.
Santa fe map

Here is some documentation how to work through and create your own map.
quickstart[1]

In order to run to create a map you will need to install folium.

https://anaconda.org/conda-forge/folium

I would also suggest installing Ipyleaflet which contains lots of mapping features.

https://anaconda.org/conda-forge/ipyleaflet
folium.Map(location=[35.6870, -105.9378],
          tiles='Stamen Toner',
          zoom_start=14)
map_osm.save('/.../map3.html')
map_1 = folium.Map(location=[35.6870, -105.9378],
                   zoom_start=12,
                   tiles='Stamen Terrain')
folium.Marker([35.6892, -105.9413], popup='Georgia O Keeffe Museum').add_to(map_1)
folium.Marker([35.6865, -105.9359], popup='Cathedral Basilica of St. Francis of Assisi').add_to(map_1)
folium.Marker([35.6641, -105.9266], popup='Museum of International Folk Art').add_to(map_1)
folium.Marker([35.5889, -106.0775], popup='arroyo de los chamisos trail').add_to(map_1)
folium.Marker([35.6661433, -105.8308525], popup='Thompson Peak Trail, NM').add_to(map_1)

map_1
map_1.save('/.../map3.html')

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s