OpenStreetMap logo OpenStreetMap

aselnigu кулланучының көндәлеге

Recent diary entries

Drawing Circles on Digital Maps

Posted by aselnigu on 14 сентябрь 2025 in 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

See full entry

Aktualisierung von osm2pgsql mithilfe von Vagrant und Ansible.

Posted by aselnigu on 23 ноябрь 2024 in German (Deutsch). Last updated on 24 ноябрь 2024.

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.

See full entry

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.

See full entry