vue2-openlayers 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- :host,:root{--ol-background-color:#fff;--ol-accent-background-color:#f5f5f5;--ol-subtle-background-color:hsla(0,0%,50%,.25);--ol-partial-background-color:hsla(0,0%,100%,.75);--ol-foreground-color:#333;--ol-subtle-foreground-color:#666;--ol-brand-color:#0af}.ol-box{box-sizing:border-box;border-radius:.02rem;border:.015rem solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:.08rem;right:.08rem;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:.04rem;bottom:.08rem;left:.08rem;padding:.02rem;position:absolute}.ol-scale-line-inner{border:.01rem solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:.1rem;text-align:center;margin:.01rem;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:.08rem;left:.08rem}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:.01rem;height:.15rem;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{bottom:-.05rem;font-size:.1rem;z-index:11}.ol-scale-step-text,.ol-scale-text{position:absolute;color:var(--ol-foreground-color);text-shadow:-.015rem 0 var(--ol-partial-background-color),0 .015rem var(--ol-partial-background-color),.015rem 0 var(--ol-partial-background-color),0 -.015rem var(--ol-partial-background-color)}.ol-scale-text{font-size:.12rem;text-align:center;bottom:.25rem}.ol-scale-singlebar{position:relative;height:.1rem;z-index:9;box-sizing:border-box;border:.01rem solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:.04rem}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:.01rem;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:.02rem}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;outline:.01rem solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:.02rem .02rem 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 .02rem .02rem}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:.01rem .5em;color:var(--ol-foreground-color);text-shadow:0 0 .02rem var(--ol-background-color);font-size:.12rem}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:.04rem 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:2rem}.ol-zoomslider button{position:relative;height:.1rem}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 .04rem 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:.01rem solid var(--ol-subtle-foreground-color);height:1.5rem;width:1.5rem}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:.015rem dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.wapper[data-v-d8c9bfda]{position:relative;width:100%;height:100%;font-size:80%;font-family:Source Han Sans CN;font-weight:400}[data-v-365d966c]{color:rgba(25,140,255,.24)}
1
+ :host,:root{--ol-background-color:#fff;--ol-accent-background-color:#f5f5f5;--ol-subtle-background-color:hsla(0,0%,50%,.25);--ol-partial-background-color:hsla(0,0%,100%,.75);--ol-foreground-color:#333;--ol-subtle-foreground-color:#666;--ol-brand-color:#0af}.ol-box{box-sizing:border-box;border-radius:.02rem;border:.015rem solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:.08rem;right:.08rem;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:.04rem;bottom:.08rem;left:.08rem;padding:.02rem;position:absolute}.ol-scale-line-inner{border:.01rem solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:.1rem;text-align:center;margin:.01rem;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:.08rem;left:.08rem}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:.01rem;height:.15rem;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{bottom:-.05rem;font-size:.1rem;z-index:11}.ol-scale-step-text,.ol-scale-text{position:absolute;color:var(--ol-foreground-color);text-shadow:-.015rem 0 var(--ol-partial-background-color),0 .015rem var(--ol-partial-background-color),.015rem 0 var(--ol-partial-background-color),0 -.015rem var(--ol-partial-background-color)}.ol-scale-text{font-size:.12rem;text-align:center;bottom:.25rem}.ol-scale-singlebar{position:relative;height:.1rem;z-index:9;box-sizing:border-box;border:.01rem solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:.04rem}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:.01rem;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:.02rem}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;outline:.01rem solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:.02rem .02rem 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 .02rem .02rem}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:.01rem .5em;color:var(--ol-foreground-color);text-shadow:0 0 .02rem var(--ol-background-color);font-size:.12rem}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:.04rem 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:2rem}.ol-zoomslider button{position:relative;height:.1rem}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 .04rem 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:.01rem solid var(--ol-subtle-foreground-color);height:1.5rem;width:1.5rem}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:.015rem dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.yl-map-wapper[data-v-dd63274a]{position:relative;width:100%;height:100%;font-size:80%;font-family:Source Han Sans CN;font-weight:400}[data-v-26b6c6d8]{color:rgba(25,140,255,.24)}
@@ -5897,12 +5897,12 @@ if (typeof window !== 'undefined') {
5897
5897
  // Indicate to webpack that this file can be concatenated
5898
5898
  /* harmony default export */ var setPublicPath = (null);
5899
5899
 
5900
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/YlMap.vue?vue&type=template&id=d8c9bfda&scoped=true
5900
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/YlMap.vue?vue&type=template&id=dd63274a&scoped=true
5901
5901
  var render = function render() {
5902
5902
  var _vm = this,
5903
5903
  _c = _vm._self._c;
5904
5904
  return _c('div', {
5905
- staticClass: "wapper"
5905
+ staticClass: "yl-map-wapper"
5906
5906
  }, [_c('div', {
5907
5907
  ref: _vm.mapId,
5908
5908
  staticStyle: {
@@ -5912,12 +5912,7 @@ var render = function render() {
5912
5912
  attrs: {
5913
5913
  "id": _vm.mapId
5914
5914
  }
5915
- }, [_vm._t("yl-map-layers"), _c('div', {
5916
- staticClass: "ol-popup",
5917
- attrs: {
5918
- "id": "popup"
5919
- }
5920
- }, [_vm._t("yl-map-overlay")], 2)], 2)]);
5915
+ }, [_vm._t("default")], 2)]);
5921
5916
  };
5922
5917
  var staticRenderFns = [];
5923
5918
 
@@ -42610,20 +42605,9 @@ class Overlay extends ol_Object {
42610
42605
  /* harmony default export */ var YlMapvue_type_script_lang_js = ({
42611
42606
  name: "YlMap",
42612
42607
  props: {
42613
- baseMap: {
42614
- type: Object,
42615
- default: function () {
42616
- // openlayers叠加mapbox自定义底图
42617
- let accessToken = 'pk.eyJ1IjoiZ2FwNDE3IiwiYSI6ImNseTlsc2J3ZDBvZGwybHNhanhnbWRibTMifQ.QSQ15RREYt2jYX79hNeMnA';
42618
- let mapBoxStyleId = 'clybcf4b900dp01pf94zj0mbh';
42619
- let mapboxUserName = 'gap417';
42620
- return new layer_Tile({
42621
- source: new source_XYZ({
42622
- url: `https://api.mapbox.com/styles/v1/${mapboxUserName}/${mapBoxStyleId}/tiles/256/{z}/{x}/{y}?access_token=${accessToken}`
42623
- }),
42624
- name: "底图"
42625
- });
42626
- }
42608
+ mapUrl: {
42609
+ type: String,
42610
+ default: 'https://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}'
42627
42611
  },
42628
42612
  center: {
42629
42613
  type: Array,
@@ -42658,28 +42642,28 @@ class Overlay extends ol_Object {
42658
42642
  methods: {
42659
42643
  //弹窗
42660
42644
  showPopup(parms) {
42661
- // parms.element = document.getElementById('popup');
42662
- console.info(parms);
42663
- //弹窗显示方法
42664
- this.overlay = new ol_Overlay({
42665
- element: document.getElementById('popup'),
42666
- //是否自动平移,即假如标记在屏幕边缘,弹出时自动平移地图使弹出框完全可见
42667
- autoPan: parms.duration != null ? true : false,
42668
- autoPanAnimation: {
42669
- duration: parms.duration
42670
- },
42671
- offset: [5, -25],
42672
- // 偏移量
42673
- positioning: "bottom-center",
42674
- // 对齐方式
42675
- coordinate: [104.06, 30.67],
42676
- // 位置
42677
- ...parms
42678
- });
42679
- //设置overlay的显示位置
42680
- this.overlay.setPosition(parms.position);
42681
- //显示overlay
42682
- this.map.addOverlay(this.overlay);
42645
+ if (parms && parms.element) {
42646
+ //弹窗显示方法
42647
+ this.overlay = new ol_Overlay({
42648
+ element: document.getElementById('popup'),
42649
+ //是否自动平移,即假如标记在屏幕边缘,弹出时自动平移地图使弹出框完全可见
42650
+ autoPan: parms.duration != null ? true : false,
42651
+ autoPanAnimation: {
42652
+ duration: parms.duration
42653
+ },
42654
+ offset: [5, -25],
42655
+ // 偏移量
42656
+ positioning: "bottom-center",
42657
+ // 对齐方式
42658
+ coordinate: [104.06, 30.67],
42659
+ // 位置
42660
+ ...parms
42661
+ });
42662
+ //设置overlay的显示位置
42663
+ this.overlay.setPosition(parms.position);
42664
+ //显示overlay
42665
+ this.map.addOverlay(this.overlay);
42666
+ }
42683
42667
  },
42684
42668
  close() {
42685
42669
  //弹窗关闭方法(防止外部调用此方法——所以先要判断是否为空)
@@ -42706,19 +42690,48 @@ class Overlay extends ol_Object {
42706
42690
  box3 = Math.max.apply(null, box3s);
42707
42691
  box4 = Math.max.apply(null, box4s);
42708
42692
  let view = this.map.getView();
42709
- // let size = this.map.getSize();
42693
+ // let size = this.map.getSize();
42710
42694
  let mzoom = view.getZoom();
42711
42695
  let coorBox = [box1, box2, box3, box4];
42712
42696
  //fit()其它属性无效--暂定解决方案 animate
42713
42697
  view.fit(coorBox);
42714
42698
  if (state) {
42715
42699
  view.animate({
42716
- zoom: zoom == undefined ? mzoom : zoom,
42717
- duration: duration == undefined ? 1000 : duration
42700
+ zoom: zoom ? mzoom : zoom,
42701
+ duration: duration ? 1000 : duration
42718
42702
  });
42719
42703
  }
42720
42704
  }
42721
42705
  },
42706
+ fitViewSource(source) {
42707
+ let view = this.map.getView();
42708
+ var feature = source.getFeatures()[0];
42709
+ var polygon = feature.getGeometry();
42710
+ view.fit(polygon, {
42711
+ padding: [50, 50, 50, 150]
42712
+ });
42713
+ },
42714
+ fitViewfeature(feature) {
42715
+ let view = this.map.getView();
42716
+ var polygon = feature.getGeometry();
42717
+ view.fit(polygon, {
42718
+ padding: [300, 300, 300, 150]
42719
+ });
42720
+ },
42721
+ fitCenter(center, zoom, duration = 700) {
42722
+ let view = this.map.getView();
42723
+ let mzoom = view.getZoom();
42724
+ function flyTo(location) {
42725
+ view.animate({
42726
+ center: location,
42727
+ duration: duration,
42728
+ zoom: mzoom ? mzoom : zoom
42729
+ });
42730
+ }
42731
+ if (center[0] && center[1]) {
42732
+ flyTo(center);
42733
+ }
42734
+ },
42722
42735
  CustomEvent() {
42723
42736
  let _this = this;
42724
42737
  class Drag extends Pointer {
@@ -42774,9 +42787,16 @@ class Overlay extends ol_Object {
42774
42787
  //点击后执行的事件
42775
42788
  function clickEvent() {
42776
42789
  // 点击回调事件
42777
- _this.$emit("handleDownEvent", evt.coordinate, feature.values_._md_ == undefined ? feature.values_ : feature.values_._md_, feature);
42790
+ _this.$emit("handleDownFeatureEvent", {
42791
+ evtCoordinate: evt.coordinate,
42792
+ value: feature.values_._md_ == undefined ? feature.values_ : feature.values_._md_,
42793
+ feature: feature,
42794
+ evt: evt,
42795
+ featureCoordinate: feature.getGeometry().getCoordinates()
42796
+ });
42778
42797
  }
42779
42798
  });
42799
+ _this.$emit("handleDownEvent", evt);
42780
42800
  }
42781
42801
 
42782
42802
  /**
@@ -42826,12 +42846,12 @@ class Overlay extends ol_Object {
42826
42846
  }
42827
42847
  },
42828
42848
  created() {
42829
- console.info("map-created");
42849
+ // console.info("map-created");
42830
42850
  this.mapId = "map" + new Date().getTime();
42831
42851
  },
42832
42852
  mounted() {
42833
42853
  let CustomEvent = this.CustomEvent();
42834
- console.info("地图组件挂载,id:" + this.mapId);
42854
+ // console.info("地图组件挂载,id:" + this.mapId);
42835
42855
  let view = new ol_View({
42836
42856
  center: this.center,
42837
42857
  projection: "EPSG:4326",
@@ -42843,14 +42863,19 @@ class Overlay extends ol_Object {
42843
42863
  const map = new ol_Map({
42844
42864
  interactions: defaults_defaults().extend([new CustomEvent()]),
42845
42865
  target: this.$refs[this.mapId],
42846
- layers: [this.baseMap],
42866
+ layers: [new layer_Tile({
42867
+ source: new source_XYZ({
42868
+ url: this.mapUrl
42869
+ }),
42870
+ name: "底图"
42871
+ })],
42847
42872
  view: view
42848
42873
  });
42849
42874
  this.map = map;
42850
42875
  // this.$bus.$emit(this.mapId + "ready", {});
42851
42876
  },
42852
42877
  beforeDestroy() {
42853
- console.info("map-beforeDestroy");
42878
+ // console.info("map-beforeDestroy");
42854
42879
  if (this.map) {
42855
42880
  this.map.setTarget(null);
42856
42881
  this.map = null;
@@ -42859,10 +42884,10 @@ class Overlay extends ol_Object {
42859
42884
  });
42860
42885
  ;// CONCATENATED MODULE: ./packages/yl-map/YlMap.vue?vue&type=script&lang=js
42861
42886
  /* harmony default export */ var yl_map_YlMapvue_type_script_lang_js = (YlMapvue_type_script_lang_js);
42862
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/YlMap.vue?vue&type=style&index=0&id=d8c9bfda&prod&scoped=true&lang=css
42887
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/YlMap.vue?vue&type=style&index=0&id=dd63274a&prod&scoped=true&lang=css
42863
42888
  // extracted by mini-css-extract-plugin
42864
42889
 
42865
- ;// CONCATENATED MODULE: ./packages/yl-map/YlMap.vue?vue&type=style&index=0&id=d8c9bfda&prod&scoped=true&lang=css
42890
+ ;// CONCATENATED MODULE: ./packages/yl-map/YlMap.vue?vue&type=style&index=0&id=dd63274a&prod&scoped=true&lang=css
42866
42891
 
42867
42892
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
42868
42893
  /* globals __VUE_SSR_CONTEXT__ */
@@ -42977,7 +43002,7 @@ var component = normalizeComponent(
42977
43002
  staticRenderFns,
42978
43003
  false,
42979
43004
  null,
42980
- "d8c9bfda",
43005
+ "dd63274a",
42981
43006
  null
42982
43007
 
42983
43008
  )
@@ -42989,13 +43014,13 @@ YlMap.install = function (Vue) {
42989
43014
  Vue.component(YlMap.name, YlMap);
42990
43015
  };
42991
43016
  /* harmony default export */ var yl_map = (YlMap);
42992
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-line/YlLine.vue?vue&type=template&id=015841aa&scoped=true
42993
- var YlLinevue_type_template_id_015841aa_scoped_true_render = function render() {
43017
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-line/YlLine.vue?vue&type=template&id=a3ffcf04&scoped=true
43018
+ var YlLinevue_type_template_id_a3ffcf04_scoped_true_render = function render() {
42994
43019
  var _vm = this,
42995
43020
  _c = _vm._self._c;
42996
43021
  return _c('div');
42997
43022
  };
42998
- var YlLinevue_type_template_id_015841aa_scoped_true_staticRenderFns = [];
43023
+ var YlLinevue_type_template_id_a3ffcf04_scoped_true_staticRenderFns = [];
42999
43024
 
43000
43025
  ;// CONCATENATED MODULE: ./node_modules/ol/structs/RBush.js
43001
43026
  /**
@@ -53387,7 +53412,7 @@ function localConvert(list, lngName, latName, usePR) {
53387
53412
  lng: n[lngName]
53388
53413
  };
53389
53414
  });
53390
- console.info('批量坐标转换数量:' + locations.length);
53415
+ // console.info('批量坐标转换数量:'+locations.length);
53391
53416
  let results = batchGps2gd(locations);
53392
53417
  if (usePR) {
53393
53418
  for (let i = 0; i < results.length; i++) {
@@ -53401,7 +53426,7 @@ function localConvert(list, lngName, latName, usePR) {
53401
53426
  }
53402
53427
  }
53403
53428
  } else if (list instanceof Object && list != null && list != undefined) {
53404
- console.info('转换坐标1个');
53429
+ // console.info('转换坐标1个');
53405
53430
  let res = gps2gd(list[latName], list[lngName]);
53406
53431
  if (usePR) {
53407
53432
  list.P = res.lat;
@@ -53551,7 +53576,7 @@ function gpsToGd(wgLon, wgLat) {
53551
53576
  setLineStyle(info) {
53552
53577
  // 优化 方法调用 多次调用问题
53553
53578
  let style = this.lineFun(info);
53554
- if (style && style.color && style.width) {
53579
+ if (style) {
53555
53580
  let lintStyle = new style_Style({
53556
53581
  stroke: new style_Stroke({
53557
53582
  //地图连线的样式
@@ -53612,9 +53637,9 @@ function gpsToGd(wgLon, wgLat) {
53612
53637
  // todo 事件监听 优化
53613
53638
  // 任务调度
53614
53639
  // 兼容 vue3没有bus
53615
- this.$bus.$on(this.$parent.mapId + "ready", () => {
53616
- this.initData();
53617
- });
53640
+ // this.$bus.$on(this.$parent.mapId + "ready", () => {
53641
+ // this.initData();
53642
+ // });
53618
53643
  },
53619
53644
  beforeMount() {},
53620
53645
  mounted() {},
@@ -53634,11 +53659,11 @@ function gpsToGd(wgLon, wgLat) {
53634
53659
  ;
53635
53660
  var YlLine_component = normalizeComponent(
53636
53661
  yl_line_YlLinevue_type_script_lang_js,
53637
- YlLinevue_type_template_id_015841aa_scoped_true_render,
53638
- YlLinevue_type_template_id_015841aa_scoped_true_staticRenderFns,
53662
+ YlLinevue_type_template_id_a3ffcf04_scoped_true_render,
53663
+ YlLinevue_type_template_id_a3ffcf04_scoped_true_staticRenderFns,
53639
53664
  false,
53640
53665
  null,
53641
- "015841aa",
53666
+ "a3ffcf04",
53642
53667
  null
53643
53668
 
53644
53669
  )
@@ -54069,13 +54094,13 @@ YlPoint.install = function (Vue) {
54069
54094
  Vue.component(YlPoint.name, YlPoint);
54070
54095
  };
54071
54096
  /* harmony default export */ var yl_point = (YlPoint);
54072
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-fiy-line/YlFiyLine.vue?vue&type=template&id=4ee1c066&scoped=true
54073
- var YlFiyLinevue_type_template_id_4ee1c066_scoped_true_render = function render() {
54097
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-fiy-line/YlFiyLine.vue?vue&type=template&id=568a88e4&scoped=true
54098
+ var YlFiyLinevue_type_template_id_568a88e4_scoped_true_render = function render() {
54074
54099
  var _vm = this,
54075
54100
  _c = _vm._self._c;
54076
54101
  return _c('div');
54077
54102
  };
54078
- var YlFiyLinevue_type_template_id_4ee1c066_scoped_true_staticRenderFns = [];
54103
+ var YlFiyLinevue_type_template_id_568a88e4_scoped_true_staticRenderFns = [];
54079
54104
 
54080
54105
  ;// CONCATENATED MODULE: ./node_modules/ol/geom/MultiPoint.js
54081
54106
  /**
@@ -58398,18 +58423,18 @@ var turf_length_default = (/* unused pure expression or super */ null && (esm_le
58398
58423
  },
58399
58424
  beforeCreate() {},
58400
58425
  created() {
58401
- this.$bus.$on(this.$parent.mapId + "ready", () => {
58402
- if (this.map == null) {
58403
- this.map = this.$parent.map;
58404
- }
58405
- if (this.mapLayers.length > 0) {
58406
- for (let i in this.mapLayers) {
58407
- this.map.removeLayer(this.mapLayers[i]);
58408
- }
58409
- this.mapLayers = [];
58410
- }
58411
- this.addPointLayer();
58412
- });
58426
+ // this.$bus.$on(this.$parent.mapId + "ready", () => {
58427
+ // if (this.map == null) {
58428
+ // this.map = this.$parent.map;
58429
+ // }
58430
+ // if (this.mapLayers.length > 0) {
58431
+ // for (let i in this.mapLayers) {
58432
+ // this.map.removeLayer(this.mapLayers[i]);
58433
+ // }
58434
+ // this.mapLayers = [];
58435
+ // }
58436
+ // this.addPointLayer();
58437
+ // });
58413
58438
  },
58414
58439
  beforeMount() {},
58415
58440
  mounted() {},
@@ -58430,11 +58455,11 @@ var turf_length_default = (/* unused pure expression or super */ null && (esm_le
58430
58455
  ;
58431
58456
  var YlFiyLine_component = normalizeComponent(
58432
58457
  yl_fiy_line_YlFiyLinevue_type_script_lang_js,
58433
- YlFiyLinevue_type_template_id_4ee1c066_scoped_true_render,
58434
- YlFiyLinevue_type_template_id_4ee1c066_scoped_true_staticRenderFns,
58458
+ YlFiyLinevue_type_template_id_568a88e4_scoped_true_render,
58459
+ YlFiyLinevue_type_template_id_568a88e4_scoped_true_staticRenderFns,
58435
58460
  false,
58436
58461
  null,
58437
- "4ee1c066",
58462
+ "568a88e4",
58438
58463
  null
58439
58464
 
58440
58465
  )
@@ -58446,13 +58471,13 @@ YlFiyLine.install = function (Vue) {
58446
58471
  Vue.component(YlFiyLine.name, YlFiyLine);
58447
58472
  };
58448
58473
  /* harmony default export */ var yl_fiy_line = (YlFiyLine);
58449
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=template&id=365d966c&scoped=true
58450
- var YlGeoJsonvue_type_template_id_365d966c_scoped_true_render = function render() {
58474
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=template&id=26b6c6d8&scoped=true
58475
+ var YlGeoJsonvue_type_template_id_26b6c6d8_scoped_true_render = function render() {
58451
58476
  var _vm = this,
58452
58477
  _c = _vm._self._c;
58453
58478
  return _c('div');
58454
58479
  };
58455
- var YlGeoJsonvue_type_template_id_365d966c_scoped_true_staticRenderFns = [];
58480
+ var YlGeoJsonvue_type_template_id_26b6c6d8_scoped_true_staticRenderFns = [];
58456
58481
 
58457
58482
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=script&lang=js
58458
58483
  /**
@@ -58568,9 +58593,9 @@ var YlGeoJsonvue_type_template_id_365d966c_scoped_true_staticRenderFns = [];
58568
58593
  },
58569
58594
  beforeCreate() {},
58570
58595
  created() {
58571
- this.$bus.$on(this.$parent.mapId + "ready", () => {
58572
- this.initData();
58573
- });
58596
+ // this.$bus.$on(this.$parent.mapId + "ready", () => {
58597
+ // this.initData();
58598
+ // });
58574
58599
  },
58575
58600
  beforeMount() {},
58576
58601
  mounted() {},
@@ -58580,10 +58605,10 @@ var YlGeoJsonvue_type_template_id_365d966c_scoped_true_staticRenderFns = [];
58580
58605
  });
58581
58606
  ;// CONCATENATED MODULE: ./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=script&lang=js
58582
58607
  /* harmony default export */ var yl_geo_json_YlGeoJsonvue_type_script_lang_js = (YlGeoJsonvue_type_script_lang_js);
58583
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=style&index=0&id=365d966c&prod&scoped=true&lang=css
58608
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=style&index=0&id=26b6c6d8&prod&scoped=true&lang=css
58584
58609
  // extracted by mini-css-extract-plugin
58585
58610
 
58586
- ;// CONCATENATED MODULE: ./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=style&index=0&id=365d966c&prod&scoped=true&lang=css
58611
+ ;// CONCATENATED MODULE: ./packages/yl-map/yl-geo-json/YlGeoJson.vue?vue&type=style&index=0&id=26b6c6d8&prod&scoped=true&lang=css
58587
58612
 
58588
58613
  ;// CONCATENATED MODULE: ./packages/yl-map/yl-geo-json/YlGeoJson.vue
58589
58614
 
@@ -58596,11 +58621,11 @@ var YlGeoJsonvue_type_template_id_365d966c_scoped_true_staticRenderFns = [];
58596
58621
 
58597
58622
  var YlGeoJson_component = normalizeComponent(
58598
58623
  yl_geo_json_YlGeoJsonvue_type_script_lang_js,
58599
- YlGeoJsonvue_type_template_id_365d966c_scoped_true_render,
58600
- YlGeoJsonvue_type_template_id_365d966c_scoped_true_staticRenderFns,
58624
+ YlGeoJsonvue_type_template_id_26b6c6d8_scoped_true_render,
58625
+ YlGeoJsonvue_type_template_id_26b6c6d8_scoped_true_staticRenderFns,
58601
58626
  false,
58602
58627
  null,
58603
- "365d966c",
58628
+ "26b6c6d8",
58604
58629
  null
58605
58630
 
58606
58631
  )