Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env python
- # -*- coding: utf-8 -*-
- # ======================================================
- # foliumCL.py
- # ------------------------------------------------------
- # Created for Full Circle Magazine Issue #161
- # Written by G.D. Walters
- # Copyright (c) 2020 by G.D. Walters
- # This source code is released under the MIT License
- # ======================================================
- import folium
- import webbrowser
- # Canyon Lake, Tx
- # m = folium.Map(location=[29.8752, -98.2625])
- # m = folium.Map(location=[29.8752, -98.2625], zoom_start=13)
- m = folium.Map(location=[29.8752, -98.2625],
- tiles='Stamen Terrain',
- zoom_start=13)
- folium.Marker([29.8631, -98.2513], popup='<i>Comal Park</i>').add_to(m)
- folium.Marker([29.8618, -98.1977],
- popup='<i>Canyon Overlook Park</i>').add_to(m)
- folium.Marker([29.8480, -98.1756], popup='<i>Sattler, Tx</i>').add_to(m)
- m.add_child(folium.LatLngPopup())
- output_file = "map2.html"
- m.save(output_file)
- webbrowser.open(output_file, new=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement