Skip to content

Make interactive, lightweight maps using leaflet to share geospatial data

License

Notifications You must be signed in to change notification settings

Dewberry/html-maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-maps

Binder

Check out an example here


Example_screenshot

Description

HTML maps is a tool that simplifies the development of lightweight and interactive maps utilizing the python visualization library folium. To generate these interactive maps we are using the Python IDE jupyter notebooks to process geo-spatial data such as:

  1. USGS gauges
  2. Hydrologic Model data
  3. Meteorological data

*NOTE : Currently the add functions are expecting geopandas.GeoDataFrames inputs.


Contents

Notebooks:

  • QuickMap-PM - The control notebook for papermill to auto-generate html maps.
  • QuickMap - Papermill notebook controlled by the QuickMap-PM notebook.
  • Example - Example notebook describing the process of initializing HTML maps.

Html-Maps:

  • mapfun.py - Library to generate interactive maps.
  • features.py - Library to auto-generate html tables.
  • HTML.py - Libary developed by Philippe Lagadec to write html tables in python.

Sample data:

Contains point, line, and polygon data for use with the example notebook. These data files are in geojson and shapefile.

  • sample_gages.geojson
  • sample_gages.shp
  • sample_lines.geojson
  • sample_lines.shp
  • sample_polygons.geojson
  • sample_polygons.shp

Workflow

  1. Initialize html map by inputting the center of the location (x,y).
m = mapfun(longitude,latitude)
  1. Add data to the html map.
m.add_polygon(polygons, descriptions, name of polygon, add_table=True)
  1. Save map.
m.map.save(outfile='map.html')

Documentation

mapfun
features

About

Make interactive, lightweight maps using leaflet to share geospatial data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •