Popups for geolocated tracker items not working properly
- Status
- Open
- Subject
- Popups for geolocated tracker items not working properly
- Version
- 27.x
- Category
- Bug
- Feature
- Trackers
- Resolution status
- New
- Submitted by
- lindon
- Lastmod by
- lindon
- Rating
- Description
I have geolocated tracker items showing on a page using the searchlayer plugin within the map plugin. The issue occurs when I click on the map pins to bring up the popups - the first one comes up fine, but as I click other pins the popups seems to cycle through the information from previously clicked pins.
I’m not familiar with this code at all but was able to fix this with a hacky workaround in the tiki-maps-ol3.js file as follows:
At the beginning of the file I declared the following 2 variables:
Copy to clipboardlet $clickedId = “”; let $iterations = 0;Then I added one line after line 796:
“Fix Id for clicked item"Copy to clipboardlet type = feature.get("type"), object = feature.get("object”); //line 796 $clickedId = object; //added line to fix the current clicked itemThen I changed line 858 as follows:
“Only load popup for clicked item"Copy to clipboardif (type && object) { //original line 858 if (type && object && object == $clickedId) { //changed line 858Then I added one line after line 1896:
“Count the iterations"Copy to clipboard$.fn.loadInfoboxPopup = function (options) { //line 1896 $iterations++; //added line to count the popups that the code iterates throughThe at line 1919 I changed the code within the if statement as follows:
“Only process the last iteration which is the current clicked item"Copy to clipboardif (options.callback) { $iterations—; if ($iterations === 0) { options.callback.call(options.element, options.event, content); } }
- Solution
- Workaround
- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8923
- Created
- Monday 16 February, 2026 02:40:34 UTC
by lindon - LastModif
- Monday 16 February, 2026 03:11:16 UTC