Skip to content

Commit

Permalink
Merge pull request #25 from usdot-fhwa-stol/hotfix/hdwy_units
Browse files Browse the repository at this point in the history
Update minhdwy units and allow for double inputs from the UI.
  • Loading branch information
snallamothu committed Jul 29, 2022
2 parents 0745d43 + a1f8cc7 commit 82585ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/cc/ws/CtrlTiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions web/script/map-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 82585ce

Please sign in to comment.