mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Display GeoJSON properties on click
This commit is contained in:
parent
cd46d9e2ff
commit
0cdf99db9e
@ -101,6 +101,11 @@ GeomapWidget.prototype.renderMap = function(domNode) {
|
|||||||
return {
|
return {
|
||||||
color: (tiddler && tiddler.getFieldString("color")) || "yellow"
|
color: (tiddler && tiddler.getFieldString("color")) || "yellow"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onEachFeature: function(feature,layer) {
|
||||||
|
if(feature.properties) {
|
||||||
|
layer.bindPopup(JSON.stringify(feature.properties,null,4));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).addTo(self.map);
|
}).addTo(self.map);
|
||||||
return layer;
|
return layer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user