/geojson-share-maps

A responsive web mapping application for viewing GeoJSON files

Primary LanguageJavaScriptMIT LicenseMIT

geojson-share-maps

Forked from @bmcbride https://github.com/bmcbride/geojson-share-maps for use with IIIF-GeoJSON-maps plugin for the Mirador image viewer.

A responsive web mapping utility for viewing and sharing GeoJSON files. Designed to be an incredibly simple and lightweight tool for quickly standing up a basic mapping application without having to write any code. Maps can be shared, embedded, and added to your mobile homescreen. Use geojson.io or any other modern mapping tool to generate your GeoJSON, place it on a web server, push it to GitHub, or save it as a Gist and quickly wrap it up as a responsive web app.

Features:

  • Fullscreen mobile-friendly map template with responsive navbar and modal popups
  • Built on the incredibly popular Bootstrap and Leaflet/Mapbox frameworks
  • Configure everything via URL parameters (no coding necessary)!
  • Define GeoJSON source, app title, logo, display fields/properties & data attribution
  • Completely client-side, can be hosted for free on GitHub Pages
  • Supports GeoJSON feature styling via simplestyle-spec
  • Sidebar with basic filtering and sorting via List.js

Examples:

URL Parameters:

Parameter Options Default Description Required
src Web accessible GeoJSON NA URL to GeoJSON source True
title Any string GeoJSON Data navbar, app title False
logo Any accessible URL NA URL to a custom navbar logo False
title_field Any valid property First property Field used for marker/sidebar title False
fields Any valid properties All Comma separated list of specific properties to show False
attribution Any string NA Source attribution added to text in bottom right of map False
cluster true / false True Should markers be clustered? False

Screenshots:

Desktop Points

Desktop 1

Desktop Polygons

Desktop 2

Mobile Map

Mobile 1

Mobile Sidebar

Mobile 2

Mobile Popup

Mobile 3