Show layer name in data viewer (close #83)
This commit is contained in:
@@ -122,7 +122,9 @@
|
||||
if (features) {
|
||||
var html = '';
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user