井乐禹 2 years ago
parent
commit
eac5ad7a0f
  1. 23
      src/views/dataBoard/fifteen/components/index.vue
  2. 1670
      src/views/modules/visual/command/index.vue

23
src/views/dataBoard/fifteen/components/index.vue

@ -74,6 +74,7 @@ import { METERS_PER_UNIT } from 'ol/proj/Units';
import { Vector as VectorSource, XYZ } from 'ol/source';
import { Fill, Icon, Stroke, Style, Text } from 'ol/style';
import Dialog from "./dialog.vue";
export default {
components: {
Dialog
@ -141,28 +142,6 @@ export default {
//
this.map.addOverlay(this.overlay);
const _this = this;
// let select = new Select({
// style: new Style({
// stroke: new Stroke({
// color: "rgb(0, 153, 255,1)",
// width: 2
// }),
// fill: new Fill({
// color: "rgb(209, 203, 189,0.6)"
// })
// })
// });
// //map
// _this.map.addInteraction(select);
// console.log(99999, select);
// select.on("select", function (e) {
// console.log("");
// // console.log(e.selected[0].get('name')); //Featurename
// let currentRome = e.selected[0]; //
// console.log(e)
// })
// return
_this.map.on("click", function (e) {
_this.featureInfo = {}
let feature = _this.map.forEachFeatureAtPixel(e.pixel, function (feature) {

1670
src/views/modules/visual/command/index.vue

File diff suppressed because it is too large
Loading…
Cancel
Save