Skip to content

Instantly share code, notes, and snippets.

Lukas Martinelli lukasmartinelli

Block or report user

Report or block lukasmartinelli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lukasmartinelli
lukasmartinelli / excel_formula.md
Last active Feb 16, 2017
Excel Formula for Creating Filenames from Titles
View excel_formula.md
=CONCATENATE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER(D11)," ","-"),"-","_"),"ä","ae"), "(", "_"), "(", "_"), "ö", "oe"), ",", "_"), "/", "_"), "__", "_"), ".csv")
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukasmartinelli
lukasmartinelli / generate_layer_readmes.sh
Created Jan 5, 2017
Generate Layer READMEs for OpenMapTiles
View generate_layer_readmes.sh
#!/bin/bash
set -o errexit
set -o nounset
function layer_readme() {
local layer="$1"
echo "## $layer" > $layer/README.md
echo "" >> $layer/README.md
echo "### Docs" >> $layer/README.md
echo "Read the layer documentation at **http://openmaptiles.org/schema#$layer**" >> $layer/README.md
View pubkez
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDTFntvgSZvpI4QQch/RM3sCPWtFXNOp2ijk3zfi24u9WM2lWfqoDi0ED0p+DvM0yZHmDkmXcLo560zz7GjmMauqA6ta4NRJNPqfzNo0zBreNQ7ajV6A1J/4CSqFOyXDKdwz6TYq9B95Si7gqOL/1K2yeUJlpYJ+QkRtlurWRO85sIsbhJX2N3p5b++d2w2AihiXlCvsGwZGMeTDRxcjqgoz2q8bxqfPkGjJV3Pu6A5q/DzMyTXAg8rumTxqWdcjVkn8JPd62Zr7Nr6Jj/42jJWwTSuvmeuDzP73J9s2al9K8b0dsJXgCocSSlU0uxnGkX6QAU+R8PjVzukvpw1lXawkdPh3L1GBKp3jeHLmzK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elli
lukasmartinelli / tolerance_per_zoom.md
Last active Dec 17, 2018
ST_Simplify tolerance per zoom level
View tolerance_per_zoom.md
zoom_level tolerance
      0 |  78271.516953125
      1 | 39135.7584765625
      2 | 19567.8792382812
      3 | 9783.93961914062
      4 | 4891.96980957031
      5 | 2445.98490478516
      6 | 1222.99245239258
      7 | 611.496226196289
View mockup.json
{"mockup":{"controls":{"control":[{"ID":"0","h":"415","measuredH":"70","measuredW":"100","typeID":"Canvas","w":"694","x":"63","y":"12","zOrder":"0"},{"ID":"1","h":"341","measuredH":"222","measuredW":"252","typeID":"Map","w":"376","x":"306","y":"44","zOrder":"1"},{"ID":"2","children":{"controls":{"control":[{"ID":"0","h":"35","measuredH":"70","measuredW":"100","properties":{"backgroundAlpha":"1","borderStyle":"square"},"typeID":"Canvas","w":"79","x":"0","y":"0","zOrder":"0"},{"ID":"1","measuredH":"21","measuredW":"54","properties":{"text":"Maputnik"},"typeID":"Label","x":"9","y":"7","zOrder":"1"}]}},"h":"35","measuredH":"35","measuredW":"79","typeID":"__group__","w":"79","x":"63","y":"12","zOrder":"2"},{"ID":"3","children":{"controls":{"control":[{"ID":"0","children":{"controls":{"control":[{"ID":"0","h":"35","measuredH":"70","measuredW":"100","properties":{"backgroundAlpha":"1","borderStyle":"square"},"typeID":"Canvas","w":"82","x":"0","y":"0","zOrder":"0"},{"ID":"1","measuredH":"21","measuredW":"33","propert
@lukasmartinelli
lukasmartinelli / maputnik_mockup.json
Last active Nov 24, 2016
Maputnik Balsamiq Mockup
View maputnik_mockup.json
{
"mockup":{
"controls":{
"control":[
{
"ID":"0",
"h":"215",
"measuredH":"70",
"measuredW":"100",
"typeID":"Canvas",
@lukasmartinelli
lukasmartinelli / style.json
Created Sep 23, 2016
Mapbox GL JSON Style Document Layer Example
View style.json
{
"layers": [
{
"id": "building",
"type": "fill",
"source": "osm2vectortiles",
"source-layer": "building",
"paint": {
"fill-color": "#eee"
}
@lukasmartinelli
lukasmartinelli / liberty.html
Last active Aug 7, 2016
Example of using OSM Liberty basemap.
View liberty.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>OSM2VectorTiles with Liberty style</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.21.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.21.0/mapbox-gl.css' rel='stylesheet' />
<style>
You can’t perform that action at this time.