Skip to content

A quick, simple tool for creating, viewing, and sharing spatial data

License

Notifications You must be signed in to change notification settings

mapbox/geojson.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ffdc22 · Dec 11, 2024
Nov 28, 2022
Aug 28, 2024
May 22, 2023
Dec 11, 2024
Apr 28, 2014
Nov 9, 2022
May 26, 2023
Nov 28, 2022
Nov 9, 2022
Aug 28, 2024
Jan 31, 2024
Jul 23, 2013
Apr 16, 2024
Nov 23, 2022
Sep 3, 2014
Feb 1, 2017
Aug 28, 2024
May 18, 2020
Aug 13, 2013
Nov 30, 2022
Nov 7, 2024
Dec 11, 2024
Dec 11, 2024
May 22, 2023
Nov 28, 2022

Repository files navigation

FOSSA Status

geojson.io

A fast, simple editor for map data. Read more on Mapbox, macwright.org.

Goes Great With!

Tools

API

You can interact with geojson.io programmatically via URL parameters. Here is an example of geojson encoded into the URL:

https://geojson.io/#data=data:application/json,%7B%22type%22%3A%22LineString%22%2C%22coordinates%22%3A%5B%5B0%2C0%5D%2C%5B10%2C10%5D%5D%7D

Full API documentation can be found in API.md.

Development

  1. Clone this repository
  2. Install dependencies
  3. Run npm start

npm start uses concurrently to run live-server which will serve the project directory in your browser and listen for changes, rollup which will build the js and css bundles, and npx tailwindcss which builds css/tailwind_dist.css (including only the tailwind rules needed in the project)

rollup can take several seconds to build before changes appear in the browser.

Production Build & Deployment

npm run build will create minified bundles in /dist. You can try out the production build with npm run serve which will run live-server.

To deploy to github pages, use npm run deploy. This will run the deploy script in deploy.sh, which creates a new orphan branch from the current branch, runs a production build, and force pushes to the gh-pages branch.

License

FOSSA Status