Show layer name in data viewer (close #83)
This commit is contained in:
parent
c1de2a7903
commit
dfb07b8286
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue