提交 2a7b5bf8 编写于 作者: S serge-rider

GIS viewer: tips for panel viewer

上级 9374a4e3
......@@ -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 += "<table>";
var objInfo = tip.info;
if (objInfo == null) objInfo = tip;
if (objInfo != null) {
for (var propName in objInfo) {
tipText += "<tr><td>" + propName + "</td><td>" + objInfo[propName] + "</td></tr>";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册