AddOn
YForm Erweiterung: Geo (OSM)
Beschreibung
YForm Erweiterung für die Einbindung einer Geocoding-Funktion basierend auf Openstreetmaps.- YForm Erweiterung für die Einbindung einer Geocoding-Funktion basierend auf Openstreetmaps.
- Anpassung der Geo-Daten über Map-Marker möglich
- Openstreetmaps (Karte), optional Mapbox (Karte + Satellit)
- PHP Klasse "geo_search" für eine postleitzahlbasierte Umkreissuche
Umsetzung
Versionen
2.0.3
Ready for yform 5.x
2.0.2
Picker Initialisierungsfix
https://github.com/FriendsOfREDAXO/yform_geo_osm/commit/9916fde4c37af5c0abceeae2a5bbed4199ff43e5
2.0.1
Unterstützung für Array-Eingabe bei addressFields in forBulkGeocoding
Beschreibung
Dieser PR erweitert die forBulkGeocoding-Methode um die Möglichkeit, neben dem bisherigen kommagetrennten String auch ein Array für den addressFields-Parameter zu akzeptieren. Dies macht die API flexibler und entwicklerfreundlicher.
nderungen
- Union Type
string|arrayfür den$addressFields-Parameter hinzugefügt (benötigt PHP 8+) - Logik zur Verarbeitung beider Eingabeformate implementiert
- PHPDoc um die neue Parameterflexibilität erweitert
- Behält die Abwärtskompatibilität mit dem bestehenden String-Format bei
Beispiel-Nutzung
// Array-Eingabe (neu)
$geocoder = Search::forBulkGeocoding(
'rex_mitglieder',
['mitglieder_strasse', 'mitglieder_ort'],
'mitglieder_latitude',
'mitglieder_longitude'
);
// String-Eingabe (wie bisher)
$geocoder = Search::forBulkGeocoding(
'rex_mitglieder',
'mitglieder_strasse,mitglieder_ort',
'mitglieder_latitude',
'mitglieder_longitude'
);
Vorteile
- Intuitivere API für Entwickler, die mit Arrays arbeiten möchten
- Weniger String-Manipulation nötig bei der Arbeit mit Feldlisten
Tests
- [x] Mit String-Eingabe getestet (Abwärtskompatibilität)
- [x] Mit Array-Eingabe getestet
- [x] Korrekte Array-Konvertierung in beiden Fällen verifiziert
What's Changed
- modified: forBulkGeocoding supports string oder array by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/67
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/2.0.0...2.0.1
2.0.0
What's Changed
- Erweiterung Bulkabfrage überall möglich nicht nur Yform, Koordinatenpicker für Formularfelder by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/27
- DB-Feldtyp varchar statt text / Speicherverhalten geändert by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/29
- no_db-Option und zugehörige Doku by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/31
- V2 - Umstellung auf FOR-Namespace und Codeverbesserungen gemeldet via
rexstan. by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/34 - RexStan eingesetzt, Value mit Validierung der Feldkonfiguration by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/38
- Kleinere Optimierungen im YForm-Value und seinem YTemplate by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/40
- Karten im YForm-Value optimieren by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/43
- Label in YForm-Feldauswahl verbessert by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/45
- added use for search by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/46
- Update CoordPicker.js initiale darstellung by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/47
- Initial zoom auf welt & new Lead by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/48
- Revert "Initial zoom auf welt & new Lead" by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/50
- Revert "Update CoordPicker.js initiale darstellung" by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/51
-
- Schritt: UX - Änderung ... jetzt nur noch live Suche by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/53
- Übergabe von Attributen im Json-Format by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/55
- Lang 🇸🇮 by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/56
- Leaflet update Leaflet to v1.9.4 by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/58
- Docs-Page verlinken, Batch-Geocoding als Teil des Managers betrachten by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/59
- YForm 4 erforderlich by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/60
- auto Update on key stroke by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/62
- Fehlende Variable $class_label gesetzt by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/64
- Rexstan-Überarbeitung by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/66
- OSM Layer-Quelle und Attribution anpassen by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/65
New Contributors
- @christophboecker made their first contribution in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/29
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.3.0...2.0.0
2.0.0-dev-2025-01-09
Letzte Vorschau-Version und RC auf die neue Version 2.0.0. Wenn möglich, bitte testen und Feedback / Korrekturen an https://github.com/FriendsOfREDAXO/yform_geo_osm/
Viele neue Features und Verbesserungen haben Einzug gefunden, ein Blick in die README.md lohnt sich.
What's Changed
- Docs-Page verlinken, Batch-Geocoding als Teil des Managers betrachten by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/59
- YForm 4 erforderlich by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/60
- auto Update on key stroke by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/62
- Fehlende Variable $class_label gesetzt by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/64
- Rexstan-Überarbeitung by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/66
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/2.0.0-dev-2025-01-04...2.0.0-dev-2025-01-09
2.0.0-dev-2025-01-04
Vorschau auf die aktuelle Entwicklungs-Version zur überarbeiteten Version 2.0.0.
Hinweis: Diese Version ist nur dazu gedacht, Änderungen innerhalb der Entwicklung von 2.0.0 zu überprüfen. Die finale Version wird 13.01.2025 erwartet.
What's Changed
- Label in YForm-Feldauswahl verbessert by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/45
- added use for search by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/46
- Update CoordPicker.js initiale darstellung by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/47
- Initial zoom auf welt & new Lead by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/48
- Revert "Initial zoom auf welt & new Lead" by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/50
- Revert "Update CoordPicker.js initiale darstellung" by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/51
-
- Schritt: UX - Änderung ... jetzt nur noch live Suche by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/53
- Übergabe von Attributen im Json-Format by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/55
- Lang 🇸🇮 by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/56
- Leaflet update Leaflet to v1.9.4 by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/58
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/2.0.0-dev-2025-01-02...2.0.0-dev-2025-01-04
2.0.0-dev-2025-01-02
Vorschau auf die aktuelle Entwicklungs-Version zur überarbeiteten Version 2.0.0.
Hinweis: Diese Version ist nur dazu gedacht, den Installer-Prozess für die 2.0.0 zu überprüfen.
What's Changed
- DB-Feldtyp varchar statt text / Speicherverhalten geändert by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/29
- no_db-Option und zugehörige Doku by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/31
- V2 - Umstellung auf FOR-Namespace und Codeverbesserungen gemeldet via
rexstan. by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/34 - RexStan eingesetzt, Value mit Validierung der Feldkonfiguration by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/38
- Kleinere Optimierungen im YForm-Value und seinem YTemplate by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/40
- Karten im YForm-Value optimieren by @christophboecker in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/43
New Contributors
- @christophboecker made their first contribution in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/29
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.4.0-beta1...2.0.0-dev-2025-01-02
1.4.0-beta1
YForm Geo OSM 1.4.0 - Erweitertes Geocoding & Koordinaten-Picker
Hauptänderungen
- Koordinaten-Picker für REDAXO-Module mit Mehrfachstandorten
- Neue API für Einzeladressabfragen via geo_search-Klasse
- Verbesserte Kartenansicht mit Adressvorschlägen
- Dark Mode mit CSS-Variablen
- Optimierte Adresssuche
Technische Details
- Abwärtskompatible Erweiterung der geo_search-Klasse
- Verbessertes JavaScript mit Event-Handling
- Anpassbares Theme über CSS-Variablen
- Beispielmodul für Koordinaten-Picker
Komponenten
📍 Eigenständiger Koordinaten-Picker
🔍 Live-Adresssuche
📱 Browser-Standortbestimmung
🗺️ OSM/Mapbox-Integration
🌙 Dark Mode
Breaking Changes
Keine. Volle Kompatibilität mit bestehenden Installationen.
Abhängigkeiten
- Leaflet
- Font Awesome 6
- jQuery
Zu testen
- YForm-Feld Funktionalität
- Koordinaten-Picker in Modulen
- Dark Mode Darstellung
- Adresssuche & Geocoding
- Mehrfachstandort-Verwaltung
1.3.0
nderungen
- Live-Suche mit Adressvorschlägen von der Nominatim API
- Browser-Standortbestimmung integriert
- Verbesserte Such-UI mit Modal-Dialog
- Font Awesome 6 Icons eingebunden
- Koordinatensuche optimiert
- Sprachdateien aktualisiert (DE/EN)
Features
🔍 Live-Suche: Direkte Adressvorschläge während der Eingabe
📍 Standort: Aktuelle Position per Klick übernehmen
🎯 Adresssuche: Spotlight-artiger Modal mit Echtzeit-Ergebnissen
Technische Details
- Nutzt Browser-Geolocation API
- Verzögerte Suchanfragen (300ms)
- Erhöhtes Limit für Nominatim-Ergebnisse auf 5
- Bootstrap-gestylte Buttons und Modal
Breaking Changes
Keine. Vollständig abwärtskompatibel.
Version
1.3.0
What's Changed
- YForm Geo OSM Update - Verbesserte Standortsuche by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/26
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.2.10...1.3.0
1.2.10
What's Changed
- Objektzugriff ermöglichen by @MC-PMOE in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/25
New Contributors
- @MC-PMOE made their first contribution in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/25
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.2.9...1.2.10
1.2.9
What's Changed
- set limit to 3000 by @alxndr-w in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/24
New Contributors
- @alxndr-w made their first contribution in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/24
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.2.8...1.2.9
1.2.8
added $this->needsOutput() , @marcohanke sagt das muss so
What's Changed
- Template laden im Frontend ermöglicht by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/22
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.2.6...1.2.7
1.2.7
What's Changed
- Template laden im Frontend ermöglicht by @skerbis in https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/22
Full Changelog: https://github.com/FriendsOfREDAXO/yform_geo_osm/compare/1.2.6...1.2.7
1.2.6
fixes conflict with geolocation
1.2.5
Erlaubt die Installation mit yform 4 final
1.2.4
Yform 4 compatibility fix https://github.com/FriendsOfREDAXO/yform_geo_osm/pull/19
1.2.3
Massencodierung über Geoapify hinzugefügt (dtpop)
1.2.2
Fix für versehentliches Absenden des Formulars @tbaddade
1.2.1
- Anpassung Einbindung Assets + JS Code im Frontend (OUTPUT_FILTER)
- Bugfix #6
- Anpassungen für Verwendung im Frontend
- Beispielcode "YForm Frontend"
1.1.2
- Versionsabhängikeit YForm 3 korrigiert
- Bilder verkleinert @ImgBot
- Deutsche Kartenanzeige