1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 18:00:26 +00:00

Fix variable references in geomap filter attributes

This commit is contained in:
jeremy@jermolene.com 2023-01-06 10:37:09 +00:00
parent 12465aab3a
commit 1a0451ac9a

View File

@ -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"),