Skip to content

Commit

Permalink
Bugfix (#158)
Browse files Browse the repository at this point in the history
* interne Container früher verlinken

* release
  • Loading branch information
christophboecker authored Jul 1, 2024
1 parent d4a2363 commit 8d47c0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 01-07-2024 2.2.1

- BugFix
- JS: Die Verlinkung der internen Geolocation -Strukturen im Karten-Container
erfolgte zu spät. `map._conainer.__rmMap` ist nun bei der Tool-initialisierung
wie geplant verfügbar.


## 26-02-2024 2.2.0

- Umbau (#152)
Expand Down
3 changes: 3 additions & 0 deletions install/geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ Geolocation.Classes.Map = class {
this.map = L.map( container, mapOptions );
if( !this.map ) return null;

// frühzetig interne Verlinkung herstellen; notwendig für Tool-initialisierung
container.__rmMap = this;

// Zusatzbuttons für "Zoom" und "Home" einbauen, indem das neue Zoom-Control aktiviert wird.
this.map.on( 'load', function(e){
this.zoomControl = this.zoomControl || new L.Control.GeolocationZoom().addTo(this.map);
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: geolocation
version: '2.2.0'
version: '2.2.1'
author: Friends Of REDAXO
supportpage: https://github.com/FriendsOfREDAXO/geolocation

Expand Down

0 comments on commit 8d47c0e

Please sign in to comment.