Commit 5743d466 by xue_wengang

ditu

parent 9e55a22b
......@@ -10,7 +10,7 @@
<script src="<%= BASE_URL %>OpMap/jquery-3.3.1.js"></script>
<script src="<%= BASE_URL %>OpMap/ol.js"></script>
<script src="<%= BASE_URL %>OpMap/OpMap.js"></script>
<script src="<%= BASE_URL %>OpMap/config_internet.js"></script>
<script src="<%= BASE_URL %>OpMap/config.js"></script>
<!-- <script src="<%= BASE_URL %>OpMap/config.js"></script> -->
<link type="text/css" href="<%= BASE_URL %>OpMap/ol.css"/>
</head>
......
......@@ -9,8 +9,8 @@ let base = {
// ztptURL: "http://26.120.5.129:8006", //通辽
ztptURL: "http://89.0.23.237:8088",
codeUrl: "",
BaseURL: "/apiAjzbGaw", //基础查询页得ip
rzURL: "/apiXzxtGaw", //刑专二期得(日志)ip
BaseURL: "/apiXzxt", //基础查询页得ip
rzURL: "/apiXzxt", //刑专二期得(日志)ip
// bigwfwurl: "",
// bigservicesurl: "",
// alyIP: "",
......
......@@ -153,7 +153,7 @@
</div> -->
</div>
<!--3-->
<div>
<!-- <div>
<div class="wrap wrap1">
<div class="bt">
<img src="@/assets/img/ryda/title5.svg" />地址/轨迹
......@@ -262,7 +262,7 @@
</div>
</div>
</div>
</div>
</div> -->
<!--4-->
<div>
<div class="wrap wrap614">
......
......@@ -480,13 +480,13 @@ export default {
this.featureArry = [];
var dataGeo = [];
opMap.$setLayer(parmL);
// opMap.$setLayer({
// layerId: "LineString",
// borderColor: "#129233",
// strokeWidth: 2,
// fillColor: "#222293",
// img: { src: poi, scale: 1 },
// });
opMap.$setLayer({
layerId: "LineString",
borderColor: "#129233",
strokeWidth: 2,
fillColor: "#222293",
img: { src: poi, scale: 1 },
});
res.data.rows.sort(function (a, b) {
return new Date(b.fxsj) - new Date(a.fxsj);
});
......@@ -522,17 +522,17 @@ export default {
img: { src: poi, scale: 1 },
};
opMap.$RenderLayer(parmR);
// opMap.$RenderLayer({
// layerId: "LineString",
// type: "LineString",
// data: [{ geometry: this.featureArry, attributions: null }],
// text: "",
// radius: "",
// borderColor: "#",
// fillColor: "#DC1096",
// strokeWidth: 2,
// img: { src: poi, scale: 1 },
// });
opMap.$RenderLayer({
layerId: "LineString",
type: "LineString",
data: [{ geometry: this.featureArry, attributions: null }],
text: "",
radius: "",
borderColor: "#",
fillColor: "#DC1096",
strokeWidth: 2,
img: { src: poi, scale: 1 },
});
}
});
},
......@@ -590,6 +590,7 @@ export default {
target_pos = targetPos,
//总的步长
count = Math.round(self._getDistance(init_pos, target_pos) / step);
debugger
if (count < 1) {
++self.indexi;
self.moveFeatureFlag(
......@@ -600,6 +601,7 @@ export default {
);
return;
}
debugger
self._intervalFlag = setInterval(function () {
if (currentCount >= count) {
clearInterval(self._intervalFlag);
......@@ -657,7 +659,7 @@ export default {
img: { src: iphone, scale: 1 },
};
opMap.$clearLayer({ layerId: "carPoint" });
// self.$RenderLayer(parm); ////////////////////////////////////////////
// opMap.$RenderLayer(parm);
opMap
.$getLayer({ layerId: "carPoint" })
.getSource()
......@@ -696,7 +698,7 @@ export default {
var b = initPos,
c = targetPos - initPos,
t = currentCount,
d = count;
d = 1;
return (c * t) / d + b;
},
......@@ -704,6 +706,7 @@ export default {
_getDistance(pxA, pxB) {
var opMap = new OpMap();
var length = opMap.$getDistance({ leftPoint: pxA, rightPoint: pxB });
debugger
return length;
},
/**
......
......@@ -69,7 +69,7 @@ module.exports = {
}
},
"/apiXzxt": {
target: "http://192.168.0.148:8501/", //统一的请求头部每次修改都要重启才会生效
target: "http://192.168.0.153:8501/", //统一的请求头部每次修改都要重启才会生效
ws: true,
changeOrigin: true,
pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment