diff --git a/src/cc/ws/CtrlTiles.java b/src/cc/ws/CtrlTiles.java index 7b903151..182c4ff9 100644 --- a/src/cc/ws/CtrlTiles.java +++ b/src/cc/ws/CtrlTiles.java @@ -39,7 +39,6 @@ import cc.vector_tile.VectorTile; import java.awt.geom.Area; import java.io.BufferedInputStream; -import java.io.BufferedWriter; import java.io.DataInputStream; import java.io.IOException; import java.io.PrintWriter; @@ -474,7 +473,7 @@ private void addControl(HttpServletRequest oReq, HttpServletResponse oRes) { double dVal = Double.parseDouble(sVal); if (sUnits.length > 0) - dVal = Units.getInstance().convert(sUnits[1], sUnits[0], dVal); + dVal = Units.getInstance().convert(sUnits[1], sUnits[0], dVal); nControlValue = (int)Math.round(dVal); } else diff --git a/web/script/map-edit.js b/web/script/map-edit.js index 02d74537..7d3fd1fc 100644 --- a/web/script/map-edit.js +++ b/web/script/map-edit.js @@ -594,6 +594,7 @@ function doneSaveEdit(oData) oMapData.features[nSelectedId].properties.reg = oData.reg; oMapData.features[nSelectedId].properties.label = oData.label; oMapData.features[nSelectedId].properties.vtypes = oData.vtypes; + oMapData.features[nSelectedId].properties.display = oData.display; oSrc.setData(oMapData); console.log(oData.id);; refreshVectorTiles();