From 84b30c8b5f91ba1b16a17d81601c496c1cad5966 Mon Sep 17 00:00:00 2001 From: serge-rider Date: Sun, 12 Apr 2020 10:36:53 +0300 Subject: [PATCH] GIS viewer: tips for panel viewer Former-commit-id: 2a7b5bf89a891f3174370fdb22997586d52e000f --- plugins/org.jkiss.dbeaver.data.gis.view/web/view_template.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/org.jkiss.dbeaver.data.gis.view/web/view_template.html b/plugins/org.jkiss.dbeaver.data.gis.view/web/view_template.html index a232fff68b..bf49503f18 100644 --- a/plugins/org.jkiss.dbeaver.data.gis.view/web/view_template.html +++ b/plugins/org.jkiss.dbeaver.data.gis.view/web/view_template.html @@ -62,7 +62,7 @@ var lastClickCoordinates = ""; function onEachFeature(feature, layer) { var tip = feature.tip; - if (tip != null && (tip.id != null || tip.objInfo != null)) { + if (tip != null) { var tipText = ""; if (tip.id != null) { var color = tip.color; @@ -71,6 +71,7 @@ } tipText += ""; var objInfo = tip.info; + if (objInfo == null) objInfo = tip; if (objInfo != null) { for (var propName in objInfo) { tipText += ""; -- GitLab
" + propName + "" + objInfo[propName] + "