Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dschep/geojson-viewer
A simple GeoJSON viewer that loads data via CORS
https://github.com/dschep/geojson-viewer
cors geojson leaflet maps
Last synced: 5 days ago
JSON representation
A simple GeoJSON viewer that loads data via CORS
- Host: GitHub
- URL: https://github.com/dschep/geojson-viewer
- Owner: dschep
- Created: 2016-12-18T20:48:34.000Z (about 8 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-12-21T04:14:23.000Z (about 8 years ago)
- Last Synced: 2024-11-16T23:05:29.664Z (2 months ago)
- Topics: cors, geojson, leaflet, maps
- Language: HTML
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CORS GeoJSON Viewer
A _very_ simple GeoJSON viewer that loads an url from the hash and renders it
with leaflet. The URL of the GeoJSON file must support CORS. If it doesn't you
can just proxy it through https://crossorigin.me/.## Examples:
* http://dschep.github.io/geojson-viewer/#https://crossorigin.me/http://eric.clst.org/wupl/Stuff/gz_2010_us_outline_20m.json
* http://dschep.github.io/geojson-viewer/#https://raw.githubusercontent.com/johan/world.geo.json/master/countries/ALB.geo.json## Limitations
I whipped this up just to visualize some of my own GeoJSON API endpoints so this
is super janky. Also, it requires modern browser support because I wrote ES6
out of habit and am not transpiling.