Skip to content

Instantly share code, notes, and snippets.

@klokan
klokan / index.html
Created Feb 21, 2018
MapTiler Geodetic tile viewer for metadata.json
View index.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="imagetoolbar" content="no"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style type="text/css">
html, body { margin:0; padding: 0; height: 100%; width: 100%; }
body { width:100%; height:100%; background: #ffffff; }
#map { position: absolute; height: 100%; width: 100%;}
View ethiopia.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View testmap.geojson
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[7.062332529638685,47.32196085765236],[7.08794013347985,47.31076042569006],[7.104048142347679,47.32392068915942],[7.077201460901297,47.333998674182425],[7.062332529638685,47.32196085765236]]]},"properties":{"Name":"Building 1","year_from":"1890"}}],"basemap":"http://maps.georeferencer.com/georeferences/184940325297/2017-12-06T18:43:22.599132Z/map.json?key=h9GmympdKvUK1pLex84g"}
@klokan
klokan / index.html
Last active Nov 9, 2017 — forked from anonymous/index.html
Positron with raster layer and labels above
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Positron Preview</title>
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.css" />
<script src="https://api.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.js"></script>
<style>
View bern-underground.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bern-buildings.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bern-baldachin.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@klokan
klokan / index.html
Last active Oct 2, 2017 — forked from anonymous/index.html
SBB Bern
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SBB Bern Preview</title>
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.css" />
<script src="https://api.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.js"></script>
<style>
@klokan
klokan / index.html
Last active Oct 2, 2017 — forked from anonymous/index.html
SBB Thun
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SBB Thun Preview</title>
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.css" />
<script src="https://api.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.js"></script>
<style>
View wikipedia-conflicts.tsv
# Physical and cultural, which should never be linked together because of the same title
provinces_HND_La_Union x
provinces_PHL_Zamboanga_del_Sur xx
provinces_PHL_Lanao_Del_Sur xxx
provinces_AUS_Norfolk_Island xxxx
provinces_ARE_Hormozgan xxxxx
provinces_AZE_?li_Bayramli xxxxxx
physical_Punjab Punjab_region
provinces_IND_Punjab Punjab,_India
provinces_PAK_Punjab Punjab,_Pakistan