<!DOCTYPE html>
|
<html lang="en">
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta name="viewport"
|
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
<title>通视分析</title>
|
<link href="../SmartEarthSDK/Workers/layui/css/layui.css" rel="stylesheet" />
|
<link href="./css/AnalysisContour.css" rel="stylesheet" />
|
|
<style type="text/css">
|
.layui-btn+.layui-btn {
|
margin-left: 20px;
|
}
|
|
.demo-slider {
|
display: inline-block !important;
|
width: 173px !important;
|
}
|
|
.color {
|
width: 100%;
|
float: left;
|
}
|
|
.top {
|
margin-top: 10px;
|
}
|
|
/*#test-form-input {
|
margin-left: 100px!important;
|
}
|
*/
|
/*#test-form {
|
/*position: absolute;
|
top: 0px;
|
right: 0px;
|
width: 37px;
|
margin-left:1px 0 1px!important;
|
width: 39px;
|
height: 39px;
|
}*/
|
|
.layui-form-label {
|
font-weight: bold !important;
|
font-size: 15px;
|
}
|
|
.lab {
|
margin-right: 43px;
|
}
|
|
label {
|
font-weight: bold;
|
}
|
|
.layui-input-block {
|
margin-left: 105px;
|
min-height: 36px;
|
margin-top: -24px;
|
}
|
|
.layui-colorpicker {
|
margin-top: 1px;
|
margin-right: 59px;
|
}
|
|
.smallbtn {
|
display: inline-block;
|
position: absolute;
|
right: 0;
|
top: 0px;
|
}
|
|
.layui-form-item {
|
width: 100% !important;
|
}
|
|
.addview {
|
background: rgba(0, 168, 255, 0.16) !important
|
}
|
</style>
|
|
</head>
|
|
<body>
|
<div class="layui-form-item" style="margin-top: 20px!important;">
|
<label class="layui-form-label " style="margin-left:-26px; width:100px;color: white;">视点高度</label>
|
<div class="layui-input-inline">
|
<input id="height" value="1.7" type="text" lay-verify="pass" autocomplete="off" placeholder="请输入相对高度"
|
onkeyup="value=value.replace(/[^\d\.]/g,'')" class="layui-input ">
|
<span class="iptline" style="color: white;">(米)</span>
|
</div>
|
</div>
|
<div class="layui-item" style="margin-top: 8px!important;margin: 3px auto 0;text-align: center;">
|
<button type="button" class="layui-btn layui-btn-normal layui-btn-lg addview" onclick="addIntervisi()">添加视点
|
</button>
|
</div>
|
<script src="../jquery-2.0.3.js"></script>
|
<script src="../SmartEarthSDK/Workers/layui/layui.js"></script>
|
<script src="./js/layuiAnalysis.js"></script>
|
<script>
|
var height = 0;
|
$('#height').on('input propertychange', function (event) {
|
var value = this.value;
|
if (value === '') {
|
height = 0;
|
} else {
|
value = value.replace(/[^\d\.]/g, '');
|
height = parseFloat(value);
|
}
|
});
|
|
function addIntervisi() {
|
parent.CreateLineOfSight(height,null);
|
}
|
|
function clearViewshed() {
|
parent.clearnViewshed();
|
}
|
</script>
|
|
</body>
|
|
</html>
|