- install node/npm, curl
- compile and install tippecanoe (version 1.8.1 works, not sure about newer releases)
- download
run.sh
from cruncher repo andchmod +x
it - replace osmqatiles-planet url with the extract you want
- adjust paths in
run.sh
(and mkdir the respective working directories) - comment out
hotprojects.sh
(would fail because it requires valid AWS credentials to upload stuff into a hardcoded bucket). - comment out the
forever restart …
lines (requires a tile-serving script to be already running) - execute
run.sh
-> … -> two.mbtiles
files in results directory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name improved interactivity for provinz.bz.it/wetter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description makes http://www.provinz.bz.it/wetter/niederschlagsvorhersage.asp more interactive | |
// @author Martin Raifer <[email protected]> | |
// @match http://www.provinz.bz.it/wetter/niederschlagsvorhersage.asp | |
// @grant none | |
// ==/UserScript== |
Interactive version of the Bikeability Index map of Graz made by Patricia Jasmin Krenn, Pekka Oja and Sylvia Titze: Development of a Bikeability Index to Assess the Bicycle-Friendliness of Urban Environments (CC-BY 4.0)
Opens the GeoJSON supplied via GET-data on a basic leaflet map. Supports some styling of features via simplestyle properties.
Parameters:
geojson
- the data to display on the maplocation
- initial map center location: "lon,lat,zoom" or "auto" (default)
Examples:
- http://bl.ocks.org/tyrasd/raw/7b88251726d3da9152ed/?geojson=%7B%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%22stroke%22%3A%22%23f44%22%2C%22stroke-opacity%22%3A0.75%2C%22stroke-width%22%3A8%7D%2C%22geometry%22%3A%7B%22type%22%3A%22LineString%22%2C%22coordinates%22%3A%5B%5B-122.44227826595306%2C37.79718494691698%5D%2C%5B-122.44171768426895%2C37.79438511142195%5D%2C%5B-122.4367555975914%2C37.795016726275364%5D%2C%5B-122.4363800883293%2C37.79313670242186%5D%2C%5B-122.43802696466445%2C37.792924746337285%5D%5D%7D%7D&location=-122.4418,37.7939,15
- http://bl.ocks.org/tyrasd/raw/7b88251726d3da9152ed/?geojson=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22type%22%3A%22Feat
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
modified version of http://bl.ocks.org/curran/01aa2685f083b6c1b9fb with the map's bounding box on the globe
original readme follows:
--
Pan and zoom in the map on the left to rotate the globe.
Click and drag the globe to pan on the map.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
</style> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function equals(g1,g2) { | |
function _equalCoords(c1,c2) { | |
if (typeof c1 === 'number') | |
return c1===c2; | |
else | |
if (Array.isArray(c1) && Array.isArray(c2) && c1.length===c2.length) | |
return c1.reduce(function(memo, val, index) { | |
return memo && _equalCoords(c1[index], c2[index]); | |
}, true); | |
else |