Show layer name in data viewer (close #83)

This commit is contained in:
Petr Sloup 2016-12-13 08:48:28 +01:00
parent c1de2a7903
commit dfb07b8286

View file

@ -122,7 +122,9 @@
if (features) { if (features) {
var html = ''; var html = '';
features.forEach(function(feature) { features.forEach(function(feature) {
html += JSON.stringify(feature.properties, null, 2) + '\n'; html +=
'[Layer: ' + feature.layer['source-layer'] + ']\n' +
JSON.stringify(feature.properties, null, 2) + '\n\n';
}); });
propertyList.innerHTML = html; propertyList.innerHTML = html;
} }