map cell view improved

This commit is contained in:
Jan Prochazka
2022-12-31 12:29:47 +01:00
parent 4a2b33276d
commit cb0a9770d2
4 changed files with 106 additions and 24 deletions

View File

@@ -47,14 +47,14 @@
];
function autodetect(selection) {
if (selection[0]?.engine?.databaseEngineTypes?.includes('document')) {
return 'jsonRow';
}
if (selectionCouldBeShownOnMap(selection)) {
return 'map';
}
if (selection[0]?.engine?.databaseEngineTypes?.includes('document')) {
return 'jsonRow';
}
const value = selection.length == 1 ? selection[0].value : null;
if (_.isString(value)) {
if (value.startsWith('[') || value.startsWith('{')) return 'json';