Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
static
README
index.html

README

GeoJSON Viewer

A tool to help view GeoJSON, whether bounded in geohashes or bounding boxes

// to add a geojson layer that is queryable by geohash
var layer = addLayer({
	url: http://url.com/?geohash={hash},
	type: 'viewport-geohash'
});

// then you can add custom mouseovers or click handlers
layer.mouseover(function(event, feature, data) {
	// stuff goes here
});

// to add a geojson layer that is queryable by viewport
var layer = addLayer({
	url: http://url.com/?maxlat={maxlat}&minlat={minlat}&maxlon={maxlon}&minlon={minlon},
	type: 'viewport-bbox'
});



Or, you can load the geojson viewer with url params:

127.0.0.1:8000/static/viewer.html?url=http://url.com/?geohash={hash}&type=viewport-geohash
Something went wrong with that request. Please try again.