gis-map-universal 1.3.5 → 1.3.6
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.
- package/gismap.umd.js +1 -1
- package/package.json +1 -1
package/gismap.umd.js
CHANGED
|
@@ -265239,7 +265239,7 @@ initSubwayPassFlowLayer(){this.subwayPassFlowLayer=new layer_Heatmap({zIndex:900
|
|
|
265239
265239
|
initIntercityHighwayPassFlowLayer(){this.intercityhighwayPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(traffic)}),blur:18,radius:2,weight:e=>{return 1;}});this.map.addLayer(this.intercityhighwayPassFlowLayer);},closeIntercityHighwayPassFlowLayer(){if(this.intercityhighwayPassFlowLayer){this.map.removeLayer(this.intercityhighwayPassFlowLayer);this.intercityhighwayPassFlowLayer=null;}},initIntercityRailwayPassFlowLayer(){this.intercityRailwayPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(traffic)}),blur:18,radius:2,weight:e=>{return 1;}});this.map.addLayer(this.intercityRailwayPassFlowLayer);},closeIntercityRailwayPassFlowLayer(){if(this.intercityRailwayPassFlowLayer){this.map.removeLayer(this.intercityRailwayPassFlowLayer);this.intercityRailwayPassFlowLayer=null;}},initIntercityShipPassFlowLayer(){this.intercityShipPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(ship1)}),blur:15,radius:15,weight:e=>{return 1;}});this.map.addLayer(this.intercityShipPassFlowLayer);},closeIntercityShipPassFlowLayer(){if(this.intercityShipPassFlowLayer){this.map.removeLayer(this.intercityShipPassFlowLayer);this.intercityShipPassFlowLayer=null;}},// 省际交通
|
|
265240
265240
|
initInterProvHighwayPassFlowLayer(){this.interProvHighwayPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(traffic)}),blur:18,radius:2,weight:e=>{return 1;}});this.map.addLayer(this.interProvHighwayPassFlowLayer);},closeInterProvHighwayPassFlowLayer(){if(this.interProvHighwayPassFlowLayer){this.map.removeLayer(this.interProvHighwayPassFlowLayer);this.interProvHighwayPassFlowLayer=null;}},initInterProvRailwayPassFlowLayer(){this.interProvRailwayPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(traffic)}),blur:18,radius:2,weight:e=>{return 1;}});this.map.addLayer(this.interProvRailwayPassFlowLayer);},closeInterProvRailwayPassFlowLayer(){if(this.interProvRailwayPassFlowLayer){this.map.removeLayer(this.interProvRailwayPassFlowLayer);this.interProvRailwayPassFlowLayer=null;}},initInterProvShipPassFlowLayer(){this.interProvShipPassFlowLayer=new layer_Heatmap({zIndex:900,source:new source_Vector["default"]({features:new ol_format_GeoJSON["default"]().readFeatures(ship2)}),blur:15,radius:15,weight:e=>{return 1;}});this.map.addLayer(this.interProvShipPassFlowLayer);},closeInterProvShipPassFlowLayer(){if(this.interProvShipPassFlowLayer){this.map.removeLayer(this.interProvShipPassFlowLayer);this.interProvShipPassFlowLayer=null;}},// 船舶运输
|
|
265241
265241
|
initFreightMonitoringLayer(){getFreightMonitorList().then(res=>{let freightMonitorList=res.data||[];let portPointList={pointList:[]};freightMonitorList.forEach(item=>{var _Vue$prototype$$Globa52;portPointList.pointList.push({type:"port",longitude:item.longitude,latitude:item.latitude,scale:0.3,offset:[0,0],GGoffsetX:0,GGoffsetY:0,textOffsetY:-30,iconUrl:this.portPointList_icon,popoup:false,otherInfo:{name:item.otherInfo.name,address:item.otherInfo.address,city:item.otherInfo.city,phone:item.otherInfo.phone,imgUrl:((_Vue$prototype$$Globa52=external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig)===null||_Vue$prototype$$Globa52===void 0?void 0:_Vue$prototype$$Globa52.baseImgURL)+"/image/GK.png",exportCargo:item.otherInfo.exportCargo,importCargo:item.otherInfo.importCargo}});});this.addPTPointByArr(portPointList,"FreightMonitoringLayer");});},initInRiverCapacityLayer(){getWaterTransportationCapacityList().then(res=>{let waterList=res.data||[];let portPointList={pointList:[]};waterList.forEach(item=>{portPointList.pointList.push({type:"inRiverCapacity",longitude:item.longitude,latitude:item.latitude,scale:0.3,offset:[0,0],GGoffsetX:0,GGoffsetY:0,textOffsetY:-30,iconUrl:this.portPointList_icon,popoup:true,// 修改为 true
|
|
265242
|
-
otherInfo:{portName:item.otherInfo.portName,longitude:item.otherInfo.longitude,latitude:item.otherInfo.latitude,layout:item.otherInfo.layout,annualThroughput:item.otherInfo.annualThroughput,mainCargo:item.otherInfo.mainCargo,shippingRoutes:item.otherInfo.shippingRoutes}});});this.addPTPointByArr(portPointList,"InRiverCapacityLayer");});},initInRiverUPCapacityLayer(){let portPointList={pointList:[{type:"inRiverUPCapacity",longitude:
|
|
265242
|
+
otherInfo:{portName:item.otherInfo.portName,longitude:item.otherInfo.longitude,latitude:item.otherInfo.latitude,layout:item.otherInfo.layout,annualThroughput:item.otherInfo.annualThroughput,mainCargo:item.otherInfo.mainCargo,shippingRoutes:item.otherInfo.shippingRoutes}});});this.addPTPointByArr(portPointList,"InRiverCapacityLayer");});},initInRiverUPCapacityLayer(){getUpstreamWaterTransportationCapacityList().then(res=>{let waterList=res.data||[];let portPointList={pointList:[]};waterList.forEach(item=>{portPointList.pointList.push({type:"inRiverUPCapacity",longitude:item.longitude,latitude:item.latitude,scale:0.3,offset:[0,0],GGoffsetX:0,GGoffsetY:0,textOffsetY:-30,iconUrl:this.portPointList_icon,popoup:true,otherInfo:{portName:item.otherInfo.portName,longitude:item.otherInfo.longitude,latitude:item.otherInfo.latitude,layout:item.otherInfo.layout,annualThroughput:item.otherInfo.annualThroughput,mainCargo:item.otherInfo.mainCargo,shippingRoutes:item.otherInfo.shippingRoutes}});});this.addPTPointByArr(portPointList,"InRiverUPCapacityLayer");});},initShippingLogisticsLayer(){getShippingLogisticsList().then(res=>{let waterList=res.data||[];let portPointList={pointList:[]};waterList.forEach(item=>{portPointList.pointList.push({type:"inRiverUPCapacity",longitude:item.longitude,latitude:item.latitude,scale:0.6,offset:[0,0],GGoffsetX:0,GGoffsetY:0,textOffsetY:-30,iconUrl:this.shippingLogistics_icon,popoup:false,otherInfo:{portName:item.otherInfo.portName}});});this.addPTPointByArr(portPointList,"ShippingLogisticsLayer");});},initTravelRelevanceLayer(){this.TravelRelevanceLayer=new ol_echarts_esm(null,{stopEvent:false,hideOnMoving:false,hideOnZooming:false,forcedPrecomposeRerender:true});this.TravelRelevanceLayer.appendTo(this.map);const cityData=[{name:"青岛",value:[120.325944,36.108996]},{name:"黄岛",value:[120.233244,36.047589]},{name:"烟台",value:[121.377127,37.556671]},{name:"大连",value:[121.655646,38.936855]},{name:"威海",value:[122.198657,37.445898]},{name:"东营",value:[118.951905,38.088139]},{name:"旅顺",value:[121.136777,38.808977]}];const lineData=[{coords:["青岛","黄岛"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["烟台","大连"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["威海","大连"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["东营","旅顺"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["黄岛","青岛"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["大连","烟台"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["大连","威海"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3},{coords:["旅顺","东营"],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#fd6a02"},{offset:1,color:"#fd9201"}]},width:3}];const getCityCoord=cityName=>{return cityData.find(city=>city.name===cityName).value;};const seriesLineData=lineData.map(line=>({coords:line.coords.map(getCityCoord),lineStyle:{color:line.color,width:line.width}}));const seriesScatterData=cityData.map(city=>({name:city.name,value:city.value,symbolSize:20}));const option={series:[{type:"lines",zlevel:1,coordinateSystem:"geo",data:seriesLineData,effect:{show:true,period:3,trailLength:0.7,symbol:"arrow",symbolSize:10},lineStyle:{opacity:1,curveness:0.1}},{type:"effectScatter",zlevel:2,coordinateSystem:"geo",symbol:"circle",itemStyle:{color:"#83cdff"},rippleEffect:{number:2,period:3,scale:2},label:{show:true,position:"bottom",color:"#39b3ff",fontSize:16,distance:10,formatter:"{b}"},data:seriesScatterData}]};if(this.TravelRelevanceLayer){this.TravelRelevanceLayer.setChartOptions(option);}},removeTravelRelevanceLayer(){if(this.TravelRelevanceLayer){this.TravelRelevanceLayer.remove();this.TravelRelevanceLayer=null;}},initSecondHandShipTradeLayer(){getSecondHandShipTradeList().then(res=>{let points=[];for(let i=0;i<res.data.length;i++){let obj={city:res.data[i].city,latlng:JSON.parse(res.data[i].latlng),count:res.data[i].count,level:res.data[i].level};points.push(obj);}this.initEchartsLayer2(points);});},// 航班线路定时切换
|
|
265243
265243
|
initFlightRoutesLayer(){this.FlightRoutesLayer=new ol_echarts_esm(null,{stopEvent:false,hideOnMoving:false,hideOnZooming:false,forcedPrecomposeRerender:true});this.FlightRoutesLayer.appendTo(this.map);// 城市数据
|
|
265244
265244
|
const cityData=[{name:"济南",value:[117.113873,36.692085]},{name:"青岛",value:[120.325944,36.108996]},{name:"烟台",value:[121.377127,37.556671]},{name:"威海",value:[122.198657,37.445898]}];// 定时器索引
|
|
265245
265245
|
this.flightRouteIndex=0;this.flightRouteTimer=null;// 初始化显示
|