Advertisement
gregwa

FCM 161 - foliumCL.py

Sep 5th, 2020
1,721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.03 KB | None | 0 0
  1. #! /usr/bin/env python
  2. #  -*- coding: utf-8 -*-
  3. # ======================================================
  4. #     foliumCL.py
  5. #  ------------------------------------------------------
  6. # Created for Full Circle Magazine Issue #161
  7. # Written by G.D. Walters
  8. # Copyright (c) 2020 by G.D. Walters
  9. # This source code is released under the MIT License
  10. # ======================================================
  11.  
  12. import folium
  13. import webbrowser
  14.  
  15. # Canyon Lake, Tx
  16. # m = folium.Map(location=[29.8752, -98.2625])
  17. # m = folium.Map(location=[29.8752, -98.2625], zoom_start=13)
  18. m = folium.Map(location=[29.8752, -98.2625],
  19.                tiles='Stamen Terrain',
  20.                zoom_start=13)
  21. folium.Marker([29.8631, -98.2513], popup='<i>Comal Park</i>').add_to(m)
  22. folium.Marker([29.8618, -98.1977],
  23.               popup='<i>Canyon Overlook Park</i>').add_to(m)
  24. folium.Marker([29.8480, -98.1756], popup='<i>Sattler, Tx</i>').add_to(m)
  25. m.add_child(folium.LatLngPopup())
  26. output_file = "map2.html"
  27. m.save(output_file)
  28. webbrowser.open(output_file, new=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement