北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
少年
2024-03-13 290aa4c2bcd83c584e0b10cab76131c069bf64b7
src/components/sideMenu/layerTreePanel/layerTreePanel2.vue
@@ -1890,7 +1890,7 @@
          source: clusterSource,
          style: function (feature) {
            var size = feature.get("features").length;
            if (size == 1) {
            if (size <= 100) {
              return new ol.style.Style({
                image: new ol.style.Icon({
                  anchor: [0.5, 1],
@@ -1944,7 +1944,7 @@
          source: clusterSource,
          style: function (feature) {
            var size = feature.get("features").length;
            if (size == 1) {
            if (size <= 100) {
              return new ol.style.Style({
                image: new ol.style.Icon({
                  anchor: [0.5, 1],
@@ -2032,7 +2032,7 @@
        source: clusterSource,
        style: function (feature) {
          var size = feature.get("features").length;
          if (size == 1) {
          if (size <= 100) {
            return new ol.style.Style({
              image: new ol.style.Icon({
                anchor: [0.5, 1],
@@ -2298,7 +2298,7 @@
      // 创建聚合层
      var clusterSource = new ol.source.Cluster({
        distance: 40,
        distance: 200,
        source: vectorSource,
      });
@@ -2308,7 +2308,7 @@
        source: clusterSource,
        style: function (feature) {
          var size = feature.get("features").length;
          if (size == 1) {
          if (size <= 1300) {
            return new ol.style.Style({
              image: new ol.style.Icon({
                anchor: [0.5, 1],