| | |
| | | <style> |
| | | </style> |
| | | </head> |
| | | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="border: 0px; overflow: hidden;" id="Body" class="hideUntillTranslated ToolButtonsArea" onload="Init()" onunload="OnUnload()"> |
| | | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="border: 0px" id="Body" class="hideUntillTranslated" onload="Init()" onunload="OnUnload()"> |
| | | <!--oncontextmenu="return false;"> onclick="bHide=true;HideOptionsNow()" > --> |
| | | <table border="0" width="100%" class="s8w" cellspacing="0" cellpadding="0"> |
| | | <table border="0" width="100%" cellspacing="0" cellpadding="2"> |
| | | |
| | | |
| | | <tr class="s8"> |
| | | <td colspan="2" align="left" class="ToolButtonsArea" style="border-bottom: 2px solid #ffffff;"> |
| | | <button id="deleteMeasure" class="MenuButton2" style="border:none;" onclick="OnDeleteMeasure();"><img src="./img/delete.png" /><br /> <!-- <span class="i18n">Text0</span> --></button> |
| | | <button id="deleteLastPoint" class="MenuButton2" style="border:none;" onclick="OnDeleteLastPoint()"><img src="./img/delete_last_point.png" /><br /><!-- <span class="i18n">Text1</span> --></button> |
| | | <button id="snapping" class="MenuButton2" style="border:none;" onclick="OnSnapping()"><img src="./img/snap.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text7</span>--> </button> |
| | | <button id="onGroundDistance" class="MenuButton2" style="border-left: 2px solid #ffffff;border-right: none;" onclick="OnGroundDistance()"><img src="./img/TerrainProfile.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text5</span>--></button> |
| | | <button id="snapping" class="MenuButton2" style="border-right: 2px solid #ffffff;" onclick="OnSnapping()"><img src="./img/snap.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text7</span>--> </button> |
| | | <button id="onGroundDistance" class="MenuButton2" style="border:none;" onclick="OnGroundDistance()"><img src="./img/TerrainProfile.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text5</span>--></button> |
| | | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | | <table border="0" width="100%" class="s8w ToolButtonsArea" cellspacing="0" cellpadding="3pt"> |
| | | |
| | | |
| | | <tr id="createTRId"> |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;">Text6</span> |
| | | <tr class="s8" height="40"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;">Text6</span> |
| | | <input type="checkbox" align="bottom" id="createMeasurementObject" style="width:25px;" onclick="CreateMeasurementObject();"/> |
| | | </td> |
| | | </tr> |
| | | <tr > |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;color:yellow;">Text24</span> |
| | | <tr height="10"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;color:yellow;">Text24</span> |
| | | <input type="checkbox" id="showAerialDistance" checked align="bottom" style="width:75px;" onclick="OnShowAerial();"/> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr > |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;color:white;">Text25</span> |
| | | <tr height="10"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;color:white;">Text25</span> |
| | | <input type="checkbox" id="showHorizontalDistance" align="bottom" style="width:25px;" onclick="OnShowHorizontal();"/> |
| | | </td> |
| | | </tr> |
| | | <tr > |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;color:#FF49E6;">Text26</span> |
| | | <tr height="10"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;color:#FF49E6;">Text26</span> |
| | | <input type="checkbox" id="showVerticalDistance" align="bottom" style="width:55px;" onclick="OnShowVertical();"/> |
| | | </td> |
| | | </tr> |
| | | <tr > |
| | | <td class="textarea-container"> |
| | | <tr class="s8" height="72" bgcolor="0"> |
| | | <td class="textarea-container" style="color:#ffffff"> |
| | | <style> |
| | | div.textarea-size{font-size: 12px;} |
| | | </style> |
| | | <div class="textarea-size s8w" ></div> |
| | | <div class="textarea-size" ></div> |
| | | </td> |
| | | </tr> |
| | | <tr id="unitTRId"> |
| | | <td align="right" > |
| | | <span id= "changeMeasurementUnits" onclick="OnChangeMeasurementUnits()" class="i18n s9w link">Text17</span> |
| | | <tr class="s8"> |
| | | <td align="right" bgcolor="0"> |
| | | <u style="color:#ffffff"><a class="btn btn-primary" style="color:#ffffff" href="#" role="button" id= "changeMeasurementUnits" onclick="OnChangeMeasurementUnits()"><span class="i18n">Text17</span></a></u> |
| | | </td> |
| | | </tr> |
| | | |
| | |
| | | |
| | | |
| | | var gGeometry = null; |
| | | |
| | | |
| | | //---------------- |
| | | function Init() |
| | | { |
| | | SGWorld.AttachEvent("OnMeasurementDistanceResult", OnMeasurementResult); |
| | | SGWorld.AttachEvent("OnInputModeChanged", OnInputModeChanged); |
| | | SGWorld.AttachEvent("OnEndDrawMeasurement", OnEndDrawMeasurement); |
| | | SGWorld.AttachEvent("OnLButtonUp", OnLButtonUp); |
| | | |
| | | var isPM = GetParamValue("pm", "0"); |
| | | if (isPM=="1"){ |
| | | $("#unitTRId").hide(); |
| | | $("#createTRId").hide(); |
| | | $("#onGroundDistance").hide(); |
| | | } |
| | | document.getElementById("changeMeasurementUnits").value=SGLang.i18n(""); |
| | | document.getElementById("deleteMeasure").title=SGLang.i18n("Text18"); |
| | | document.getElementById("deleteLastPoint").title=SGLang.i18n("Text19"); |
| | | document.getElementById("snapping").title=SGLang.i18n("Text20"); |
| | | document.getElementById("onGroundDistance").title=SGLang.i18n("Text23"); |
| | | |
| | | ////Turn off CreateMeasurementObject |
| | | //SGWorld.Command.Execute(2225,0); |
| | | |
| | | var bCreateMeasurementObject = (isPM=="1")?false:SGWorld.GetOptionParam("CreateMeasurementObjects"); |
| | | document.getElementById("createMeasurementObject").checked = bCreateMeasurementObject; |
| | | CreateMeasurementObject(); |
| | | |
| | | Reset(1,0); |
| | | |
| | | SGWorld.Command.Execute(2356,0);//__TEC_MEASURE_AERIAL_DIST |
| | | |
| | | SetSnapping(); |
| | | |
| | | document.getElementById("showAerialDistance").checked = SGWorld.GetOptionParam(_AERIAL_REG_NAME); |
| | | document.getElementById("showHorizontalDistance").checked = SGWorld.GetOptionParam(_HORIZONTAL_REG_NAME); |
| | | document.getElementById("showVerticalDistance").checked = SGWorld.GetOptionParam(_VERTICAL_REG_NAME); |
| | | |
| | | //////////////OnShow(); |
| | | |
| | | EnableDisableButtons(); |
| | | |
| | | |
| | | //showVerticalDistance |
| | | } |
| | | //---------------- |
| | | // ShowPopup |
| | | function ShowPopup(ProfileType, ObjID) |
| | | { |
| | | var CompareStr = ""; |
| | |
| | | Reset(0,0); |
| | | |
| | | |
| | | SGWorld.Command.Execute(2356, 0);//__TEC_MEASURE_AERIAL_DIST |
| | | SGWorld.Command.Execute(1035, 0); |
| | | |
| | | EnableDisableButtons(); |
| | | //alert("bb"); |
| | |
| | | |
| | | } |
| | | |
| | | function Init() |
| | | { |
| | | SGWorld.AttachEvent("OnMeasurementDistanceResult", OnMeasurementResult); |
| | | SGWorld.AttachEvent("OnInputModeChanged", OnInputModeChanged); |
| | | SGWorld.AttachEvent("OnEndDrawMeasurement", OnEndDrawMeasurement); |
| | | SGWorld.AttachEvent("OnLButtonUp", OnLButtonUp); |
| | | |
| | | |
| | | document.getElementById("changeMeasurementUnits").value=SGLang.i18n(""); |
| | | |
| | | document.getElementById("deleteMeasure").title=SGLang.i18n("Text18"); |
| | | document.getElementById("deleteLastPoint").title=SGLang.i18n("Text19"); |
| | | document.getElementById("snapping").title=SGLang.i18n("Text20"); |
| | | |
| | | |
| | | document.getElementById("onGroundDistance").title=SGLang.i18n("Text23"); |
| | | |
| | | ////Turn off CreateMeasurementObject |
| | | //SGWorld.Command.Execute(2225,0); |
| | | |
| | | var bCreateMeasurementObject = SGWorld.GetOptionParam("CreateMeasurementObjects"); |
| | | document.getElementById("createMeasurementObject").checked = bCreateMeasurementObject; |
| | | |
| | | Reset(1,0); |
| | | |
| | | |
| | | SGWorld.Command.Execute(1035,0); |
| | | |
| | | |
| | | SetSnapping(); |
| | | |
| | | |
| | | |
| | | |
| | | document.getElementById("showAerialDistance").checked = SGWorld.GetOptionParam(_AERIAL_REG_NAME); |
| | | document.getElementById("showHorizontalDistance").checked = SGWorld.GetOptionParam(_HORIZONTAL_REG_NAME); |
| | | document.getElementById("showVerticalDistance").checked = SGWorld.GetOptionParam(_VERTICAL_REG_NAME); |
| | | |
| | | |
| | | OnShow(); |
| | | |
| | | EnableDisableButtons(); |
| | | |
| | | |
| | | //showVerticalDistance |
| | | |
| | | |
| | | } |
| | | |
| | | function OnLButtonUp(Flags, X, Y) |
| | | { |
| | |
| | | |
| | | function OnMeasurementResult(measurementResult,SounrceID) |
| | | { |
| | | measurementResult = measurementResult.replace("Total Aerial Distance:", "总空中距离:") |
| | | .replace("Total Horizontal Distance:", "总水平距离:") |
| | | .replace("Total Vertical Distance:", "总垂直距离:") |
| | | .replace("Total Vertical Distance (First point to last point):", "总垂直距离(从第一点到最后一点):") |
| | | .replace("Slope:", "坡度:") |
| | | .replace("Slope (First point to last point):", "坡度(从第一点到最后一点):") |
| | | .replace(/km/g, " 千米") |
| | | .replace(/cm/g, " 厘米") |
| | | .replace(/mm/g, " 毫米") |
| | | .replace(/m/g, " 米"); |
| | | |
| | | textContainer = document.querySelector('.textarea-container'); |
| | | textareaSize = textContainer.querySelector('.textarea-size'); |
| | | //input = textContainer.querySelector('textarea'); |
| | |
| | | </html> |
| | | |
| | | |
| | | <!--Sig:000000408JYdtBwnEhYwKwSHBToL4ROTBsQ92IumwfiHRg2dcUb.aSdjqmR2hWrrJjiq7xBbYr6MVX764LIe8a6004zvXaJJ--> |
| | | <!--Sig:000000405.7Y75ySqtgDkqtb.Vz1lxgEisNhH.6TgboicXd4MIc7pamv2pMtgQL32A.a0g3r3BvYuCKxsIkZyGSiAi2LX8JJ--> |