static GeoJSON resources distributed via public cdn
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
italy.json
ladakh.json
package.json
world.json

README.md

geojson-resources

Usable static GeoJSON resources simply.

Install

npm i geojson-resources

Usage

Loading by JQuery and show in Leaflet map directly in your page:

//your map
var map = L.map(...);

$.when($.getJSON('https://unpkg.com/geojson-resources@1.1.0/world.json'))
.then(function(json) {
  
  //load world boundaries in your map
  L.geoJSON(json).addTo(map);
  
});

Roadmap

  • include other simple geometries
  • organize each geometry hierarchically
  • consider various levels of accuracy
  • define a unique namespace for each resource

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Creative Commons License Logo