data from https://api.fixmyberlin.de/api/projects?page_size=200, under ODbL license
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
var fs = require("fs"), | |
topojson = require("topojson"), | |
filesize = require('file-size'); | |
// https://brouter.de/brouter/segments4/ | |
var path = 'Index of _brouter_segments4_.html', | |
gridSize = 5; // degrees | |
var entryList = []; |
Finds MAPS.ME edits that removed elements from multi value list, i.e. tags with multiple values separated by semicolon (";").
Uses changesets dump from planet.openstreetmap.org and full history extract from Geofabrik, both pre-filtered and converted to the Osmium Tool OPL Format.
To get edits by MAPS.ME, the changesets dump is filtered by the created_by
tag and later matched by changeset ID with the full history file.
Requires:
- Osmium Tool >= 1.7.0 (because of bbox for changeset-filter), tested with v1.10.0 (built from source)
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
L.MarkerHash = function(map, options, marker) { | |
this.marker = marker; | |
L.Hash.call(this, map, options); | |
}; | |
L.MarkerHash.prototype = L.Util.create(L.Hash.prototype); | |
L.MarkerHash.prototype.constructor = L.MarkerHash; | |
L.Util.extend(L.MarkerHash.prototype, { |
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
L.MyHash = function(map, options) { | |
L.Hash.call(this, map, options); | |
}; | |
L.MyHash.prototype = L.Util.create(L.Hash.prototype); | |
L.MyHash.prototype.constructor = L.MyHash; | |
L.Util.extend(L.MyHash.prototype, { | |
parseHash: function(hash) { | |
console.log('parseHash: ' + hash); |
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
.leaflet-control-minZoomIndicator { | |
font-size: 2em; | |
background: #ffffff; | |
background-color: rgba(255,255,255,0.7); | |
border-radius: 10px; | |
padding: 1px 15px; | |
opacity: 0.5; | |
} |
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
.leaflet-control-minZoomIndicator { | |
font-size: 2em; | |
background: #ffffff; | |
background-color: rgba(255,255,255,0.7); | |
border-radius: 10px; | |
padding: 1px 15px; | |
opacity: 0.5; | |
} |
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 lang="en"> | |
<head> | |
<title>BRouter estimated_traffic_class</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" /> | |
<style type="text/css"> | |
body { | |
margin: 0; |
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 lang="en"> | |
<head> | |
<link rel="stylesheet" href="http://openlayers.org/en/v3.1.1/css/ol.css" type="text/css"> | |
<style> | |
body { | |
margin: 0; | |
} | |
html, body, .map { | |
height: 100%; |
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> | |
<title>OSM PBF to GeoJSON example (osm-read + osmtogeojson)</title> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
<pre id="log" style="max-height: 480px; overflow-y: auto;"></pre> |
NewerOlder