OpenStreetMap 标志 OpenStreetMap

aselnigu的日记

最近的日记文章

Drawing Circles on Digital Maps

aselnigu 于 2025年九月14日 以 English 发布

You can find a German version of this article here: Kreise in MapLibre

I want to integrate a Geolocate control into a MapLibre map and customize it both visually and functionally to fit my app.

At first, I considered using the GeolocateControl that comes standard with MapLibre. However, I quickly discarded this approach because adapting it to my needs seemed too cumbersome without a lot of fiddling.

My goal is that when the button is clicked, the display of the current location is toggled—so it can be turned on and off.

MapLibre itself offers several ways to draw circles on the map, depending on whether they should be pixel-accurate or meter-accurate.

Circles on a MapLibre Map

My starting point is a simple map.

A simple map

查看完整日记文章

Aktualisierung von osm2pgsql mithilfe von Vagrant und Ansible.

aselnigu 于 2024年十一月23日 以 German (Deutsch) 发布 最后一次更新于2024年十一月24日。

Ausgangszustand

Wir haben via der nachfolgenden Aufrufe

  • eine Vagrant Maschine mit dem Test-Import vom Hackathon in Karlsruhe aus dem Snapshot wiederhergestellt,
  • den Branch mit dem neuen Playbook geladen
  • das Datum in der virtuellen Maschine auf den aktuellen Stand gesetzt
  • Datenbank Updates in der virtuellen Maschine getestet
  • und die Aktualisierung der Datenbank gestoppt und deaktiviert.

查看完整日记文章

TL;DR: Testupdate von osm2pgsql 1.8 auf 2.0 gemacht, um zu prüfen, ob ein Neueinlesen der Daten nötig ist: Wir haben uns für ein Neueinlesen entschieden.

Testupdate von osm2pgsql 1.8 zu osm2pgsql 2.0

Ausgangspunkt

Ausgangspunkt ist eine Vagrant-Maschine, auf der mittels Ansible genau wie beim “echten” Tile Server die Installation durchgeführt wurde.

In unserem Fall via:

vagrant up bookworm
./init_vagrant_inventory.sh bookworm
ansible-playbook -v -i vagrant.ini site.yml -u vagrant > | tee tile.txt

(mit Memory 8196 ).

Daten

Anstelle der ganzen Welt importieren wir unter Vagrant für den Test lediglich die Daten für Monaco.

查看完整日记文章