gis-map-universal 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/gismap.umd.js +5 -5
  2. package/package.json +1 -1
package/gismap.umd.js CHANGED
@@ -265150,7 +265150,7 @@ if(that.tiandituKEY=="1"){selectedKey=that.tiandituKeyOne;}else if(that.tianditu
265150
265150
  // projection: 'EPSG:4326'
265151
265151
  // });
265152
265152
  // this.map.addLayer(chedaoLineLayer);
265153
- fetch(((_Vue$prototype$$Globa=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa===void 0?void 0:_Vue$prototype$$Globa.baseURL)+this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,// opacity: 1,
265153
+ fetch(((_Vue$prototype$$Globa=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa===void 0?void 0:_Vue$prototype$$Globa.baseImgURL)+this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,// opacity: 1,
265154
265154
  style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:that.normalizedThemeStyle==="light"?that.lightFillColor:that.darkFillColor// 填充颜色
265155
265155
  }),stroke:new Stroke["default"]({color:that.normalizedThemeStyle==="light"?that.lightStrokeColor:that.darkStrokeColor,// 边界线颜色
265156
265156
  width:1// 边界线宽度
@@ -265177,7 +265177,7 @@ let radarSource=new ImageStatic({url:yunTuImgArr[yunTuImgArr.length-1],projectio
265177
265177
  let radarSource=new ImageStatic({url:url,projection:"EPSG:3857",imageExtent:Object(ol_proj["transformExtent"])([114.60168,34.260503,122.919454,38.400545],// [73.121466, 9.789179, 135.138754, 53.595483],
265178
265178
  "EPSG:4326","EPSG:3857")});radarLayer.setSource(radarSource);});},// 初始化气象云图图层
265179
265179
  initMeteorologicalCloudLayers(){let meteorologicalCloudLayer=new layer_Image["default"]({layerName:"meteorologicalCloudLayer",zIndex:999});this.map.addLayer(meteorologicalCloudLayer);fetch("https://api.open.geovisearth.com/pj/v2/view/satellite/mfv/fy/vis/range?token=70364f2e16615fd5a500d0fc9f6f4552&start=2026010700&end=2026010714&high=true").then(response=>response.json()).then(data=>{const cloudUrls=data.result.urls;const cloudDataArr=Object.keys(cloudUrls).map(time=>{return{time:time,data:cloudUrls[time][0].trim().replace(/`/g,'')};});cloudDataArr.sort((a,b)=>a.time.localeCompare(b.time));this.cloudDataArr=cloudDataArr;this.initCloudControlModule(cloudDataArr);if(cloudDataArr.length>0){let source=new ImageStatic({url:cloudDataArr[cloudDataArr.length-1].data,projection:"EPSG:3857",imageExtent:Object(ol_proj["transformExtent"])([61.00003809347595,6.053856309457643,136.92003809347597,53.97385630945764],"EPSG:4326","EPSG:3857")});meteorologicalCloudLayer.setSource(source);}}).catch(error=>{console.error("获取云图数据失败:",error);});},// 更新云图图层
265180
- updateCloudLayer(cloudDataItem){const cloudLayer=this.findLayerByName("meteorologicalCloudLayer");if(cloudLayer&&cloudDataItem){let source=new ImageStatic({url:cloudDataItem.data,projection:"EPSG:3857",imageExtent:Object(ol_proj["transformExtent"])([61.00003809347595,6.053856309457643,136.92003809347597,53.97385630945764],"EPSG:4326","EPSG:3857")});cloudLayer.setSource(source);}},initRoadNetwork(){var _Vue$prototype$$Globa2;let colorList=[{京九通道:"rgba(174, 93, 57, 0.8)"},{京沪通道:"rgba(174, 93, 57, 0.8)"},{滨临通道:"rgba(174, 93, 57, 0.8)"},{京沪二通道:"rgba(174, 93, 57, 0.8)"},{济青通道:"rgba(139, 72, 213, 0.8)"},{鲁中通道:"rgba(139, 72, 213, 0.8)"},{鲁北通道:"rgba(139, 72, 213, 0.8)"},{鲁南通道:"rgba(139, 72, 213, 0.8)"},{沿海通道:"rgba(174, 93, 57, 0.8)"},{沿黄达海通道:"rgba(23, 136, 185, 0.8)"}];let colorList2=[{京九通道:"#FFB1A0"},{京沪通道:"#FFB1A0"},{滨临通道:"#FFB1A0"},{京沪二通道:"#FFB1A0"},{济青通道:"#E4CDFF"},{鲁中通道:"#E4CDFF"},{鲁北通道:"#E4CDFF"},{鲁南通道:"#E4CDFF"},{沿海通道:"#FFB1A0"},{沿黄达海通道:"#BCEBFF"}];let angleList=[{京九通道:90},{京沪通道:90},{滨临通道:90},{京沪二通道:90},{济青通道:0},{鲁中通道:0},{鲁北通道:0},{鲁南通道:0},{沿海通道:0},{沿黄达海通道:0}];let roadNetworkSource=new source_Vector["default"]({url:((_Vue$prototype$$Globa2=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa2===void 0?void 0:_Vue$prototype$$Globa2.baseURL)+"/std.json",format:new ol_format_GeoJSON["default"]({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"})});let roadNetworkLayer=new layer_Vector["default"]({layerName:"roadNetworkLayer",source:roadNetworkSource,style:function(feature){let fename=feature.getProperties().name;let fecolor=colorList.find(item=>Object.keys(item)[0]===fename);let feangle=angleList.find(item=>Object.keys(item)[0]===fename);let fecolor2=colorList2.find(item=>Object.keys(item)[0]===fename);return new Style["default"]({stroke:new StrokePattern({width:15,pattern:"hatch",color:fecolor[fename],offset:0,scale:0.9,fill:new Fill["default"]({color:"rgba(0,0,0,0)"}),size:1.5,spacing:4,angle:feangle[fename],lineCap:"square"}),text:new ol_style_Text["default"]({text:fename,font:"bold 18px sans-serif",fill:new Fill["default"]({color:fecolor2[fename]//"#E4CDFF",
265180
+ updateCloudLayer(cloudDataItem){const cloudLayer=this.findLayerByName("meteorologicalCloudLayer");if(cloudLayer&&cloudDataItem){let source=new ImageStatic({url:cloudDataItem.data,projection:"EPSG:3857",imageExtent:Object(ol_proj["transformExtent"])([61.00003809347595,6.053856309457643,136.92003809347597,53.97385630945764],"EPSG:4326","EPSG:3857")});cloudLayer.setSource(source);}},initRoadNetwork(){var _Vue$prototype$$Globa2;let colorList=[{京九通道:"rgba(174, 93, 57, 0.8)"},{京沪通道:"rgba(174, 93, 57, 0.8)"},{滨临通道:"rgba(174, 93, 57, 0.8)"},{京沪二通道:"rgba(174, 93, 57, 0.8)"},{济青通道:"rgba(139, 72, 213, 0.8)"},{鲁中通道:"rgba(139, 72, 213, 0.8)"},{鲁北通道:"rgba(139, 72, 213, 0.8)"},{鲁南通道:"rgba(139, 72, 213, 0.8)"},{沿海通道:"rgba(174, 93, 57, 0.8)"},{沿黄达海通道:"rgba(23, 136, 185, 0.8)"}];let colorList2=[{京九通道:"#FFB1A0"},{京沪通道:"#FFB1A0"},{滨临通道:"#FFB1A0"},{京沪二通道:"#FFB1A0"},{济青通道:"#E4CDFF"},{鲁中通道:"#E4CDFF"},{鲁北通道:"#E4CDFF"},{鲁南通道:"#E4CDFF"},{沿海通道:"#FFB1A0"},{沿黄达海通道:"#BCEBFF"}];let angleList=[{京九通道:90},{京沪通道:90},{滨临通道:90},{京沪二通道:90},{济青通道:0},{鲁中通道:0},{鲁北通道:0},{鲁南通道:0},{沿海通道:0},{沿黄达海通道:0}];let roadNetworkSource=new source_Vector["default"]({url:((_Vue$prototype$$Globa2=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa2===void 0?void 0:_Vue$prototype$$Globa2.baseImgURL)+"/std.json",format:new ol_format_GeoJSON["default"]({dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"})});let roadNetworkLayer=new layer_Vector["default"]({layerName:"roadNetworkLayer",source:roadNetworkSource,style:function(feature){let fename=feature.getProperties().name;let fecolor=colorList.find(item=>Object.keys(item)[0]===fename);let feangle=angleList.find(item=>Object.keys(item)[0]===fename);let fecolor2=colorList2.find(item=>Object.keys(item)[0]===fename);return new Style["default"]({stroke:new StrokePattern({width:15,pattern:"hatch",color:fecolor[fename],offset:0,scale:0.9,fill:new Fill["default"]({color:"rgba(0,0,0,0)"}),size:1.5,spacing:4,angle:feangle[fename],lineCap:"square"}),text:new ol_style_Text["default"]({text:fename,font:"bold 18px sans-serif",fill:new Fill["default"]({color:fecolor2[fename]//"#E4CDFF",
265181
265181
  }),rotateWithView:true,// stroke: new Stroke({
265182
265182
  // color: "#E4CDFF",
265183
265183
  // width: 1,
@@ -265323,7 +265323,7 @@ iconUrl:this.airportPointList_icon,popoup:false,otherInfo:{name:"菏泽牡丹机
265323
265323
  initHolidayBusLayer(){getHolidayBusList().then(res=>{let data=JSON.parse(res.msg);this.holidayBusLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(data)}),blur:18,radius:2,weight:e=>{return 1;}});this.map.addLayer(this.holidayBusLayer);});},closeHolidayBusLayer(){if(this.holidayBusLayer){this.map.removeLayer(this.holidayBusLayer);this.holidayBusLayer=null;}},// 地铁客流量
265324
265324
  initSubwayPassFlowLayer(){getHolidaySubwayList().then(res=>{let data=JSON.parse(res.msg);this.subwayPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(data)}),blur:15,radius:15,weight:e=>{return 1;}});this.map.addLayer(this.subwayPassFlowLayer);});},closeSubwayPassFlowLayer(){if(this.subwayPassFlowLayer){this.map.removeLayer(this.subwayPassFlowLayer);this.subwayPassFlowLayer=null;}},// 网约车
265325
265325
  initOnlineCarLayer(){getHolidayOnlineCarList().then(res=>{let data=JSON.parse(res.msg);this.onlineCarLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(data)}),blur:15,radius:6,weight:e=>{return 1;}});this.map.addLayer(this.onlineCarLayer);});},closeOnlineCarLayer(){if(this.onlineCarLayer){this.map.removeLayer(this.onlineCarLayer);this.onlineCarLayer=null;}},// 共享单车
265326
- initBikeShareLayer(){getHolidayBikeShareList().then(res=>{let data=JSON.parse(res.msg);this.bikeShareLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(data)}),blur:15,radius:6,weight:e=>{return 1;}});this.map.addLayer(this.bikeShareLayer);});},closeBikeShareLayer(){if(this.bikeShareLayer){this.map.removeLayer(this.bikeShareLayer);this.bikeShareLayer=null;}},initCitySubwayLineLayer(){var _Vue$prototype$$Globa54;fetch(((_Vue$prototype$$Globa54=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa54===void 0?void 0:_Vue$prototype$$Globa54.baseURL)+this.subwayLineUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();this.citySubwayLineLayer=new layer_Vector["default"]({layerName:"citySubwayLineLayer",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:4,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:"#bb9f14"}),stroke:new Stroke["default"]({lineDash:[5,5],color:"#bb9f14",width:2// 边界线宽度
265326
+ initBikeShareLayer(){getHolidayBikeShareList().then(res=>{let data=JSON.parse(res.msg);this.bikeShareLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(data)}),blur:15,radius:6,weight:e=>{return 1;}});this.map.addLayer(this.bikeShareLayer);});},closeBikeShareLayer(){if(this.bikeShareLayer){this.map.removeLayer(this.bikeShareLayer);this.bikeShareLayer=null;}},initCitySubwayLineLayer(){var _Vue$prototype$$Globa54;fetch(((_Vue$prototype$$Globa54=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa54===void 0?void 0:_Vue$prototype$$Globa54.baseImgURL)+this.subwayLineUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();this.citySubwayLineLayer=new layer_Vector["default"]({layerName:"citySubwayLineLayer",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:4,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:"#bb9f14"}),stroke:new Stroke["default"]({lineDash:[5,5],color:"#bb9f14",width:2// 边界线宽度
265327
265327
  })});}});this.map.addLayer(this.citySubwayLineLayer);});},// 市际交通
265328
265328
  // 公路客流量
265329
265329
  initIntercityHighwayPassFlowLayer(){getIntercityHighwayPassFlowList().then(res=>{let data=JSON.parse(res.msg);this.intercityhighwayPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(data)}),blur:18,radius:12,weight:e=>{return 1;}});this.map.addLayer(this.intercityhighwayPassFlowLayer);});},closeIntercityHighwayPassFlowLayer(){if(this.intercityhighwayPassFlowLayer){this.map.removeLayer(this.intercityhighwayPassFlowLayer);this.intercityhighwayPassFlowLayer=null;}},// 铁路客流量
@@ -265415,8 +265415,8 @@ initAreaGDPLayer(){let data=[{city:"济南",latlng:[117.218567,36.63746469],leve
265415
265415
  }else if(value===4){return"#FFD700";// 金色
265416
265416
  }else if(value===5){return"#00FFFF";// 青色
265417
265417
  }else{return"#2E2E2E";// 深灰色,用于默认或其他情况
265418
- }}}}}]};if(this.largeTruckLayer){this.largeTruckLayer.setChartOptions(option);}},removeLargeTruckLayer(){if(this.largeTruckLayer){this.largeTruckLayer.remove();this.largeTruckLayer=null;}},/*交通运输*/initHighwayCapacityLayer(){getTransportationPassengerList().then(res=>{const records=res.data.result;const groups={};records.forEach(item=>{const m=item.month;if(!groups[m]){groups[m]=[];}groups[m].push({city:item.city,latlng:[item.longitude,item.latitude],total_flow:item.passenger});});const sortedMonths=Object.keys(groups).map(Number).sort((a,b)=>a-b);const outputList=sortedMonths.map(month=>{const points=groups[month].sort((a,b)=>b.total_flow-a.total_flow).map((p,i)=>({...p,level:16-i}));const monthStr=month+'月';const time=`${monthStr}`;const type='GLKY';return{time,points,type};});if(!this.isRadarShow){this.isRadarShow=true;this.tooltipIsShow=true;this.txtArr=outputList;this.maxValue=outputList.length-1;this.marks={};for(let i=0;i<outputList.length;i++){if(i%2===0){this.marks[i]={style:{color:"#77e5ff","font-size":"13px"},label:this.$createElement("span",outputList[i].time)};}}this.initEchartsLayer(outputList[0].points,"万人");}});},initHighwayFreightLayer(){getTransportationFreightList().then(res=>{const records=res.data.result;const groups={};records.forEach(item=>{const m=item.month;if(!groups[m]){groups[m]=[];}groups[m].push({city:item.city,latlng:[item.longitude,item.latitude],total_flow:item.freight});});const sortedMonths=Object.keys(groups).map(Number).sort((a,b)=>a-b);const outputList=sortedMonths.map(month=>{const points=groups[month].sort((a,b)=>b.total_flow-a.total_flow).map((p,i)=>({...p,level:16-i}));const monthStr=month+'月';const time=`${monthStr}`;const type='GLHY';return{time,points,type};});if(!this.isRadarShow){this.isRadarShow=true;this.tooltipIsShow=true;this.txtArr=outputList;this.maxValue=outputList.length-1;this.marks={};for(let i=0;i<outputList.length;i++){if(i%2===0){this.marks[i]={style:{color:"#77e5ff","font-size":"13px"},label:this.$createElement("span",outputList[i].time)};}}this.initEchartsLayer(outputList[0].points,"万吨");}});},closeJTYSLayer(){this.isRadarShow=false;this.isPlaying=false;clearInterval(this.intervalId);this.sliderValue=0;this.tooltipIsShow=false;if(this.echartslayer){this.echartslayer.remove();this.echartslayer=null;}}},watch:{themeStyle(val){let _this=this;if(val==="dark"){if(_this.tiandituLayer){var _Vue$prototype$$Globa56;_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.darkUrl,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(((_Vue$prototype$$Globa56=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa56===void 0?void 0:_Vue$prototype$$Globa56.baseURL)+_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.darkFillColor}),stroke:new Stroke["default"]({color:_this.darkStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}else if(val==="light"){var _Vue$prototype$$Globa57;_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);let selectedKey=_this.tiandituKeyOne;// 默认使用第一个密钥
265419
- if(_this.tiandituKEY=="1"){selectedKey=_this.tiandituKeyOne;}else if(_this.tiandituKEY=="2"){selectedKey=_this.tiandituKeyTwo;}_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.lightUrl,key:selectedKey,projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(((_Vue$prototype$$Globa57=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa57===void 0?void 0:_Vue$prototype$$Globa57.baseURL)+_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.lightFillColor}),stroke:new Stroke["default"]({color:_this.lightStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}}});
265418
+ }}}}}]};if(this.largeTruckLayer){this.largeTruckLayer.setChartOptions(option);}},removeLargeTruckLayer(){if(this.largeTruckLayer){this.largeTruckLayer.remove();this.largeTruckLayer=null;}},/*交通运输*/initHighwayCapacityLayer(){getTransportationPassengerList().then(res=>{const records=res.data.result;const groups={};records.forEach(item=>{const m=item.month;if(!groups[m]){groups[m]=[];}groups[m].push({city:item.city,latlng:[item.longitude,item.latitude],total_flow:item.passenger});});const sortedMonths=Object.keys(groups).map(Number).sort((a,b)=>a-b);const outputList=sortedMonths.map(month=>{const points=groups[month].sort((a,b)=>b.total_flow-a.total_flow).map((p,i)=>({...p,level:16-i}));const monthStr=month+'月';const time=`${monthStr}`;const type='GLKY';return{time,points,type};});if(!this.isRadarShow){this.isRadarShow=true;this.tooltipIsShow=true;this.txtArr=outputList;this.maxValue=outputList.length-1;this.marks={};for(let i=0;i<outputList.length;i++){if(i%2===0){this.marks[i]={style:{color:"#77e5ff","font-size":"13px"},label:this.$createElement("span",outputList[i].time)};}}this.initEchartsLayer(outputList[0].points,"万人");}});},initHighwayFreightLayer(){getTransportationFreightList().then(res=>{const records=res.data.result;const groups={};records.forEach(item=>{const m=item.month;if(!groups[m]){groups[m]=[];}groups[m].push({city:item.city,latlng:[item.longitude,item.latitude],total_flow:item.freight});});const sortedMonths=Object.keys(groups).map(Number).sort((a,b)=>a-b);const outputList=sortedMonths.map(month=>{const points=groups[month].sort((a,b)=>b.total_flow-a.total_flow).map((p,i)=>({...p,level:16-i}));const monthStr=month+'月';const time=`${monthStr}`;const type='GLHY';return{time,points,type};});if(!this.isRadarShow){this.isRadarShow=true;this.tooltipIsShow=true;this.txtArr=outputList;this.maxValue=outputList.length-1;this.marks={};for(let i=0;i<outputList.length;i++){if(i%2===0){this.marks[i]={style:{color:"#77e5ff","font-size":"13px"},label:this.$createElement("span",outputList[i].time)};}}this.initEchartsLayer(outputList[0].points,"万吨");}});},closeJTYSLayer(){this.isRadarShow=false;this.isPlaying=false;clearInterval(this.intervalId);this.sliderValue=0;this.tooltipIsShow=false;if(this.echartslayer){this.echartslayer.remove();this.echartslayer=null;}}},watch:{themeStyle(val){let _this=this;if(val==="dark"){if(_this.tiandituLayer){var _Vue$prototype$$Globa56;_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.darkUrl,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(((_Vue$prototype$$Globa56=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa56===void 0?void 0:_Vue$prototype$$Globa56.baseImgURL)+_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.darkFillColor}),stroke:new Stroke["default"]({color:_this.darkStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}else if(val==="light"){var _Vue$prototype$$Globa57;_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);let selectedKey=_this.tiandituKeyOne;// 默认使用第一个密钥
265419
+ if(_this.tiandituKEY=="1"){selectedKey=_this.tiandituKeyOne;}else if(_this.tiandituKEY=="2"){selectedKey=_this.tiandituKeyTwo;}_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.lightUrl,key:selectedKey,projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(((_Vue$prototype$$Globa57=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa57===void 0?void 0:_Vue$prototype$$Globa57.baseImgURL)+_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.lightFillColor}),stroke:new Stroke["default"]({color:_this.lightStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}}});
265420
265420
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
265421
265421
  var es_array_reduce = __webpack_require__("13d5");
265422
265422
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-map-universal",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "GIS通用组件",
5
5
  "main": "gismap.umd.js",
6
6
  "private": false,