Skip to content

Instantly share code, notes, and snippets.

View klokan's full-sized avatar

Petr Pridal klokan

View GitHub Profile
@klokan
klokan / index.html
Last active November 9, 2017 16:24 — forked from anonymous/index.html
Positron with raster layer and labels above
<!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>
{"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"}
Loading
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
Created February 21, 2018 17:25
MapTiler Geodetic tile viewer for metadata.json
<!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%;}
@klokan
klokan / README.md
Created September 11, 2023 13:49 — forked from CraigglesO/README.md
vector tile spec

S2 Vector Tile Specification 2.0.0

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

1. Purpose

This document specifies a space-efficient encoding format for tiled geographic vector data. It is designed to be used in browsers or server-side applications for fast rendering or lookups of feature data.