mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 03:06:59 +00:00
Display GeoJSON properties on click
This commit is contained in:
@@ -101,6 +101,11 @@ GeomapWidget.prototype.renderMap = function(domNode) {
|
||||
return {
|
||||
color: (tiddler && tiddler.getFieldString("color")) || "yellow"
|
||||
}
|
||||
},
|
||||
onEachFeature: function(feature,layer) {
|
||||
if(feature.properties) {
|
||||
layer.bindPopup(JSON.stringify(feature.properties,null,4));
|
||||
}
|
||||
}
|
||||
}).addTo(self.map);
|
||||
return layer;
|
||||
|
||||
Reference in New Issue
Block a user