Skip to content

shashashasha/GeoJSON-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published