Giter Site home page Giter Site logo

mapjack's Introduction

mapjack

mapjack in action

What it does

Mapjack hacks in a map editor next to GitHub's normal text editor when you are editing GeoJSON files.

Getting it

Mapjack is distributed as a Greasemonkey-style user script. It has been tested to work with both Greasmonkey in Firefox and Tampermonkey in Chrome. Note that it won't work as a straight user script in Chromium because it depends on unsafeWindow (be warned!).

The script is hosted here: tschaub.net/mapjack/mapjack.user.js

If you already have either Greasemonkey or Tampermonkey installed, just click on the link above to install the script. If you don't, go install them first, and then come back to click.

Using it

After installing you can view any .geojson file on GitHub, click the "Edit" button, and get a map editor (hot tip: you can find some sample GeoJSON files to experiment with in the mapjack repo).

The editing workflow is pretty bare bones right now. To modify an existing shape, just click and start dragging points around. Click a "ghost" vertex to add a new point. Click "d" while hovering over a vertext to delete. No support for adding new features or removing entire features right now. To finish editing, click back to the "Code" tab, enter your commit message, and commit!

Disclaimer: This is a late night hack. Use at your own risk.

mapjack's People

Contributors

tschaub avatar fredj avatar

Watchers

Marc Jansen avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.