mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-26 00:46:52 +00:00
Fix variable references in geomap filter attributes
This commit is contained in:
parent
de567dead2
commit
6986acb848
@ -71,7 +71,7 @@ GeomapWidget.prototype.renderMap = function(domNode) {
|
|||||||
L.control.scale().addTo(map);
|
L.control.scale().addTo(map);
|
||||||
// Add overlays
|
// Add overlays
|
||||||
if(this.geomapLayerFilter) {
|
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);
|
var tiddler = self.wiki.getTiddler(title);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var layer = L.geoJSON($tw.utils.parseJSONSafe(tiddler.fields.text || "[]",[])).addTo(map);
|
var layer = L.geoJSON($tw.utils.parseJSONSafe(tiddler.fields.text || "[]",[])).addTo(map);
|
||||||
@ -80,7 +80,7 @@ GeomapWidget.prototype.renderMap = function(domNode) {
|
|||||||
}
|
}
|
||||||
// Add markers
|
// Add markers
|
||||||
if(this.geomapMarkerFilter) {
|
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);
|
var tiddler = self.wiki.getTiddler(title);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var lat = $tw.utils.parseNumber(tiddler.fields.lat || "0"),
|
var lat = $tw.utils.parseNumber(tiddler.fields.lat || "0"),
|
||||||
|
Loading…
Reference in New Issue
Block a user