Compare commits

...

2 Commits

  1. 2629
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/data/lcz.json
  2. 51
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue

2629
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/data/lcz.json

File diff suppressed because it is too large

51
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue

@ -98,12 +98,9 @@ export default {
let jhgsPl2 = drawJHPath(this.AMap, lczDatas, 1, 60); let jhgsPl2 = drawJHPath(this.AMap, lczDatas, 1, 60);
//, //,
this.aMapIns.on('zoomend', () => { this.aMapIns.on('zoomchange', () => {
this.aMapIns.getZoom() > 19.5 ? this.aMapIns.add(jhgsPl2) : this.aMapIns.remove(jhgsPl2); this.aMapIns.getZoom() > 19.5 ? this.aMapIns.add(jhgsPl2) : this.aMapIns.remove(jhgsPl2);
}); });
this.aMapIns.on('zoomstart', () => {
this.aMapIns.remove(jhgsPl2);
});
}); });
@ -160,34 +157,48 @@ export default {
context.lineJoin = 'round'; context.lineJoin = 'round';
context.lineWidth = 5; context.lineWidth = 5;
//线 //()线
// context.moveTo(5, 0); // context.moveTo(5, 0);
// context.lineTo(5, height); // context.lineTo(5, height);
//线 //
//线
context.moveTo(35, 0); context.moveTo(35, 0);
context.lineTo(35, 50); context.lineTo(35, 40);
context.moveTo(35, 100); context.moveTo(35, 55);
context.lineTo(35, 95);
context.moveTo(35, 110);
context.lineTo(35, 150); context.lineTo(35, 150);
//线 //线
context.moveTo(75, 20); // context.moveTo(35, 0);
context.lineTo(75, 70); // context.lineTo(35, height);
context.moveTo(75, 120); //
context.lineTo(75, 170); //线
//线 context.moveTo(75, 0);
context.lineTo(75, 40);
context.moveTo(75, 55);
context.lineTo(75, 95);
context.moveTo(75, 110);
context.lineTo(75, 150);
//线
// context.moveTo(75, 0);
// context.lineTo(75, height);
//
//线
context.moveTo(115, 0); context.moveTo(115, 0);
context.lineTo(115, 50); context.lineTo(115, 40);
context.moveTo(115, 100); context.moveTo(115, 55);
context.lineTo(115, 95);
context.moveTo(115, 110);
context.lineTo(115, 150); context.lineTo(115, 150);
//线
// context.moveTo(115, 0);
// context.lineTo(115, height);
//线 //线
// context.moveTo(width - 5, 0); // context.moveTo(width - 5, 0);
// context.lineTo(width - 5, height); // context.lineTo(width - 5, height);
context.stroke(); context.stroke();
//
// context.fillStyle = "red";
// context.fillRect(0, 0, width, height);
return canvasDir; return canvasDir;
} }

Loading…
Cancel
Save