From 6986acb84887ce1b676c5ccb5a7d1c1175b24cda Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Fri, 6 Jan 2023 10:37:09 +0000 Subject: [PATCH] Fix variable references in geomap filter attributes --- plugins/tiddlywiki/geospatial/widgets/geomap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tiddlywiki/geospatial/widgets/geomap.js b/plugins/tiddlywiki/geospatial/widgets/geomap.js index 41e85e260..34254ed21 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geomap.js +++ b/plugins/tiddlywiki/geospatial/widgets/geomap.js @@ -71,7 +71,7 @@ GeomapWidget.prototype.renderMap = function(domNode) { L.control.scale().addTo(map); // Add overlays if(this.geomapLayerFilter) { - $tw.utils.each(this.wiki.filterTiddlers(this.geomapLayerFilter),function(title) { + $tw.utils.each(this.wiki.filterTiddlers(this.geomapLayerFilter,this),function(title) { var tiddler = self.wiki.getTiddler(title); if(tiddler) { var layer = L.geoJSON($tw.utils.parseJSONSafe(tiddler.fields.text || "[]",[])).addTo(map); @@ -80,7 +80,7 @@ GeomapWidget.prototype.renderMap = function(domNode) { } // Add markers if(this.geomapMarkerFilter) { - $tw.utils.each(this.wiki.filterTiddlers(this.geomapMarkerFilter),function(title) { + $tw.utils.each(this.wiki.filterTiddlers(this.geomapMarkerFilter,this),function(title) { var tiddler = self.wiki.getTiddler(title); if(tiddler) { var lat = $tw.utils.parseNumber(tiddler.fields.lat || "0"),