This gist describes how to download a map for a custom region and serve it on a website.
It uses the Protomaps Basemap but the same workflow can be used with OpenMapTiles or Shortbread.
The download links are:
This gist describes how to download a map for a custom region and serve it on a website.
It uses the Protomaps Basemap but the same workflow can be used with OpenMapTiles or Shortbread.
The download links are:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | |
<script src='https://unpkg.com/[email protected]/dist/maplibre-gl.js'></script> | |
<link href='https://unpkg.com/[email protected]/dist/maplibre-gl.css' rel='stylesheet' /> | |
<link href="https://demotiles.maplibre.org/style.json" rel="preload" as="fetch" /> | |
<link href="https://demotiles.maplibre.org/tiles/tiles.json" rel="preload" as="fetch" /> | |
<link href="https://demotiles.maplibre.org/tiles/1/1/1.pbf" rel="preload" as="fetch" /> |
I would like to create an indexed font encoder. It should be an application that takes the following as input:
labels.json
: a list of map labels to encodeignore_codepoints.json
: a list of unicode codepoints which should be ignored for the encodoingAnd the output of the application should be:
I would like to be able to make myself one day a vector landcover tileset that looks as good as the ones of the large consumer maps. I tried doing this a bit but so far I have not found a good solution.
The landcover should give you an idea how the nature looks like in a place, whatever that means...
In this gist I would like to write down some notes around the challenges of making a vector landcover tileset.
Related to onthegomap/planetiler#550
# iBBQ sensor readout script using python bleak | |
# | |
# Source code was copied from https://github.com/8none1/pybq which is licensed under the GPLv3.0. | |
# For the license of the original script see https://github.com/8none1/pybq/blob/master/LICENSE | |
# | |
# Was adapted to use the python bleak package instead of bluepy using ChatGPT. | |
# | |
# Thanks to Will Cooke (https://github.com/8none1/) for providing the orginal version! | |
#!/usr/bin/env bash | |
set -e | |
rm -rf comparison.txt | |
echo "start pmtiles ############################" 2>&1 | tee -a comparison.txt | |
start=$(date +%s) | |
java -cp target/*-with-deps.jar com.onthegomap.planetiler.examples.SwissMap \ | |
--download --area=planet --bounds=world \ | |
--download-threads=10 --download-chunk-size-mb=1000 \ | |
--fetch-wikidata \ |
running:
SELECT ?item ?itemLabel ?coord
WHERE
{
?item wdt:P31/wdt:P279* wd:Q70208;
wdt:P17 wd:Q39;
rdfs:label ?itemLabel;
wdt:P625 ?coord;
FILTER (lang(?itemLabel) = "de")