Fork me on GitHub

Show Me the GeoJSON

This is the clipboard. It displays the properties for the last feature you clicked on in this here modal dialog in case you want to copy to your computer's actual clipboard.

close the clipboard

Show me the GeoJSON is a bespoke web application for loading and displaying GeoJSON files on a map.

It can load remote GeoJSON files (assuming that the host they are being served from has enabled CORS support).

On browsers that support the File API it can load GeoJSON files locally from disk. (For intents and purposes this means Firefox and Opera at the moment.)

As each GeoJSON document is loaded the map is zoomed to the maximum extent of all the features (points, polygons, etc.) listed in all the documents. As you mouse over each feature any properties defined for that element will be displayed in the sidebar on the left-hand side. If you click on a feature any properties will be displayed in a modal dialog for easy copy-pasting.

By default, Show Me the GeoJSON is meant to run as a stand-alone web application although it can also be embedded in a web page with other stuff. Like this page, for example. Take a look at the source code for details.

It currently lacks the necessary spit and polish in the visual design and colour palette departments but otherwise works. It doesn't do much but then again it isn't meant to either.

If you have geographic data in a format other than GeoJSON you can probably convert it using the ogr2ogr command line tool. If you had an ESRI shapefile called example.shp you would create a GeoJSON file (called example.json) like this:

$> ogr2ogr -f GeoJSON example.json example.shp

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/straup/showme-the-geojson