API Einbindung via WordPress Plugin und Shortcode

District IDDistrict Name
3Nordstadt
10Fruerlund
4Westliche Höhe
1Altstadt
9Jürgensby
13Tarup
8Sandberg
5Friesischer Berg
7Südstadt
6Weiche
12Engelsby
11Mürwik
2Neustadt

Geo Maps

 

Informationen zum Thema Karten.

EPSG:4326 / GPS

WGS 84 -- WGS84 - World Geodetic System 1984, used in GPS

https://epsg.io/4326

EPSG:3857 / Maps

WGS 84 / Pseudo-Mercator -- Spherical Mercator, Google Maps, OpenStreetMap, Bing, ArcGIS, ESRI

https://epsg.io/3857

nginx tileserver

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name maps.grain.one;
charset utf-8;

location / {
proxy_pass http://localhost:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
}

ssl_certificate /etc/letsencrypt/live/maps.grain.one/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/maps.grain.one/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

server {
if ($host = maps.grain.one) {
return 301 https://$host$request_uri;
} # managed by Certbot

listen 80;
listen [::]:80;

server_name maps.grain.one;
return 404; # managed by Certbot
}

service tileserver

[Unit]
Description=Instance to serve the gr_tileserver
After=network.target

[Service]
Type=simple
User=awendelk
Group=awendelk
DynamicUser=true

WorkingDirectory=/opt/tileserver
PrivateTmp=true

ExecStart=/opt/tileserver/gr_tileserver -p 8081 -tiles /data

ExecReload=/bin/kill -HUP ${MAINPID}
RestartSec=1
Restart=always

[Install]
WantedBy=multi-user.target

Build GrainLib with Proj Library

sudo apt install proj-bin
sudo apt install libproj-dev
rm -rf build/
cmake -S . -B build
cmake --build build
cd build/
./GrainLib