Commit 12076e96 authored by xxx's avatar xxx

修改

parent 1672228f
{ {
"map3d": { "map3d": {
"scene": { "scene": {
"center": {"lat":37.4900,"lng":122.04849,"alt":1500,"heading":360,"pitch":-90}, "center": {"lat":37.4900,"lng":122.04849,"alt":1000,"heading":360,"pitch":-90},
"scene3DOnly": false, "scene3DOnly": false,
"shadows": false, "shadows": false,
"removeDblClick": true, "removeDblClick": true,
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
}, },
"cameraController": { "cameraController": {
"zoomFactor": 3.0, "zoomFactor": 3.0,
"minimumZoomDistance": 800, "minimumZoomDistance": 200,
"maximumZoomDistance": 50000000, "maximumZoomDistance": 50000000,
"enableRotate": true, "enableRotate": true,
"enableTranslate": true, "enableTranslate": true,
......
...@@ -36,53 +36,6 @@ export default { ...@@ -36,53 +36,6 @@ export default {
data(){ data(){
return{ return{
historyTrajectoryData:[], historyTrajectoryData:[],
persons:[
["122.128833", "37.526448", "500"],
["122.128638", "37.522818", "500"],
["122.128738", "37.522818", "500"],
["122.128638", "37.528518", "500"],
["122.128538", "37.528818", "500"],
["122.128538", "37.525818", "500"],
["122.121538", "37.523318", "500"],
["122.127833", "37.525448", "500"],
["122.128833", "37.526448", "500"],
["122.128638", "37.522818", "500"],
["122.128738", "37.522818", "500"],
["122.128638", "37.528518", "500"],
["122.128538", "37.528818", "500"],
["122.128538", "37.525818", "500"],
["122.121538", "37.523318", "500"],
["122.127833", "37.525448", "500"],
["122.128833", "37.526448", "500"],
["122.128638", "37.522818", "500"],
["122.128738", "37.522818", "500"],
["122.128638", "37.528518", "500"],
["122.128538", "37.528818", "500"],
["122.128538", "37.525818", "500"],
["122.121538", "37.523318", "500"],
["122.127833", "37.525448", "500"],
["122.128833", "37.526448", "500"],
["122.128638", "37.522818", "500"],
["122.128738", "37.522818", "500"],
["122.128638", "37.528518", "500"],
["122.128538", "37.528818", "500"],
["122.128538", "37.525818", "500"],
["122.121538", "37.523318", "500"],
["122.127833", "37.525448", "500"],
["122.128833", "37.526448", "500"],
["122.128638", "37.522818", "500"],
["122.128738", "37.522818", "500"],
["122.128638", "37.528518", "500"],
["122.128538", "37.528818", "500"],
["122.128538", "37.525818", "500"],
["122.121538", "37.523318", "500"],
["122.127833", "37.525448", "500"],
],
deviceId:'DESKTOP-L56LKGM', deviceId:'DESKTOP-L56LKGM',
zuobianData:[], zuobianData:[],
toJavaCoordinates:[], toJavaCoordinates:[],
...@@ -223,20 +176,6 @@ export default { ...@@ -223,20 +176,6 @@ export default {
map = new mars3d.Map(`mars3d-container${this.mapKey}`, mapOptions) map = new mars3d.Map(`mars3d-container${this.mapKey}`, mapOptions)
this[`map${this.mapKey}`] = map this[`map${this.mapKey}`] = map
//历史轨迹回放例子
// var graphicLayer1 = new mars3d.layer.GraphicLayer();
// map.addLayer(graphicLayer1);
// var itemText = `<table style="width: auto;">
// <tr>
// <th scope="col" colspan="2" style="text-align:center;font-size:15px;">卡车号码:${that.carNumber}</th>
// </tr>
// <tr>
// <td>设备名称:${that.deviceId}</td>
// </tr>
// </table>`;
// initGraphicManager(graphicLayer1,itemText);
// that.addGraphic_02(graphicLayer1,this.persons,that.carNumber);
//历史轨迹回放 //历史轨迹回放
that.historyTrajectoryData.forEach(function(item,index){ that.historyTrajectoryData.forEach(function(item,index){
var graphicLayer2 = new mars3d.layer.GraphicLayer(); var graphicLayer2 = new mars3d.layer.GraphicLayer();
...@@ -285,8 +224,9 @@ export default { ...@@ -285,8 +224,9 @@ export default {
}, },
label: { label: {
text: truckName, text: truckName,
font_size: 19, font_size: 22,
font_family: "楷体", font_family: "楷体",
color: "#ff0000",
color: Cesium.Color.AZURE, color: Cesium.Color.AZURE,
outline: true, outline: true,
outlineColor: Cesium.Color.BLACK, outlineColor: Cesium.Color.BLACK,
...@@ -296,8 +236,8 @@ export default { ...@@ -296,8 +236,8 @@ export default {
pixelOffset: new Cesium.Cartesian2(10, -25), //偏移量 pixelOffset: new Cesium.Cartesian2(10, -25), //偏移量
}, },
model: { model: {
url: "//data.mars3d.cn/gltf/mars/car/tufangche.glb", url: '//data.mars3d.cn/gltf/imap/1d4f63111fc9499dac5cee2286ad7bb3/gltf/gltf2.gltf',
scale: 0.1, scale: 1,
minimumPixelSize: 50, minimumPixelSize: 50,
}, },
}); });
......
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