diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ba9ff2d9..2679b6436 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [CalVer](https://calver.org/). ## [UNRELEASED] - 2025-724-2 - +- showNoValueInInfo config for displaying all attributes in feature-info. Default attributes with missing values is not in the dialog. ### Added - The default coordinate system can now be set in Coordinates module: diff --git a/browser/modules/init.js b/browser/modules/init.js index 470f3351f..4a0924029 100644 --- a/browser/modules/init.js +++ b/browser/modules/init.js @@ -96,6 +96,7 @@ module.exports = { emptyInfoCallback: null, infoCallback: null, dateFormats: {}, + showNoValueInInfo: false, }; // Set session from URL if (typeof urlVars.session === "string") { diff --git a/browser/modules/sqlQuery.js b/browser/modules/sqlQuery.js index ebe276b40..430ccfa30 100644 --- a/browser/modules/sqlQuery.js +++ b/browser/modules/sqlQuery.js @@ -84,6 +84,15 @@ let defaultTemplate = {{/_vidi_content.fields}} `; +let defaultTemplateWithNoValue = + `
{{{value}}}
+ {{/_vidi_content.fields}} +