gis-map-universal 0.3.3 → 0.3.4

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 +38 -41
  2. package/package.json +1 -1
package/gismap.umd.js CHANGED
@@ -457188,20 +457188,20 @@ var LatlonPick_component = normalizeComponent(
457188
457188
  };
457189
457189
  },
457190
457190
  methods: {
457191
- initBaseLayers() {
457191
+ initBaseLayers() { // http://10.166.157.210:8090/
457192
457192
  let that = this;
457193
457193
  const superMapRestUrl =
457194
- "https://10.0.111.11:8090/iserver/services/map-WorkSpace/rest/maps/t2";
457194
+ "https://10.0.111.11:8090/iserver/services/map-WorkSpace/rest/maps/t2"; // 弃用底图
457195
457195
  const wmsUrl =
457196
- "https://10.0.111.11:8090/iserver/services/map-JHArea/wms111/JHArea";
457196
+ "https://10.0.111.11:8090/iserver/services/map-JHArea-2/wms130/JHArea"; // 四市高亮面
457197
457197
  const baseRoadUrl =
457198
- "https://10.0.111.11:8090/iserver/services/map-baseRoad/wms130";
457199
- const G35Url = "https://10.0.111.11:8090/iserver/services/map-G35/wms130";
457198
+ "https://10.0.111.11:8090/iserver/services/map-baseRoad-2/wms130"; // 全省道路线
457199
+ const G35Url = "https://10.0.111.11:8090/iserver/services/map-G35/wms130"; // G35高亮线
457200
457200
  const styleURL =
457201
- "https://10.0.111.11:8090/iserver/services/map-mvt-BaseMapG35/restjsr/v1/vectortile/maps/BaseMapG35/style.json";
457201
+ "https://10.0.111.11:8090/iserver/services/map-mvt-BaseMapG352/restjsr/v1/vectortile/maps/BaseMapG35/style.json";// 底图
457202
457202
  // 加载ArcGIS服务
457203
457203
  const arcgisUrl =
457204
- "http://124.128.27.156:18085/arcgis/rest/services/BaseService/darkColor/MapServer";
457204
+ "http://124.128.27.156:18085/arcgis/rest/services/BaseService/darkColor/MapServer"; // 测试用arcgis服务
457205
457205
  const arcgisLayer = new Tile["default"]({
457206
457206
  source: new source_TileArcGISRest({
457207
457207
  ratio: 1,
@@ -457259,7 +457259,7 @@ var LatlonPick_component = normalizeComponent(
457259
457259
  FORMAT: "image/png",
457260
457260
  },
457261
457261
  }),
457262
- zIndex: 2,
457262
+ zIndex: 5,
457263
457263
  projection: "EPSG:3857",
457264
457264
  });
457265
457265
  this.map.addLayer(G35layer);
@@ -457287,39 +457287,36 @@ var LatlonPick_component = normalizeComponent(
457287
457287
  that.map.addLayer(vectorLayer);
457288
457288
  });
457289
457289
  // 加载geojson数据
457290
- let geoJSONUrl =
457291
- // "https://geo.datav.aliyun.com/areas_v2/bound/370000_full.json";
457292
- // "https://geo.datav.aliyun.com/areas_v3/bound/100000.json";
457293
- 'http://10.166.154.218:8081/imgforGis/china_full.json'
457294
- fetch(geoJSONUrl)
457295
- .then((response) => response.json())
457296
- .then((data) => {
457297
- let geoJSONFormat = new format_GeoJSON["default"]();
457298
- let vectorLayer = new layer_Vector["default"]({
457299
- layerName: "xxxx",
457300
- source: new source_Vector["default"]({
457301
- format: geoJSONFormat,
457302
- features: geoJSONFormat.readFeatures(data, {
457303
- dataProjection: "EPSG:4326",
457304
- featureProjection: "EPSG:3857",
457305
- }),
457306
- }),
457307
- zIndex: 0,
457308
- opacity: 1,
457309
- style: function (feature) {
457310
- return new Style["default"]({
457311
- fill: new Fill["default"]({
457312
- color: "#142747", // 这里设置填充颜色为半透明的红色
457313
- }),
457314
- stroke: new Stroke["default"]({
457315
- color: "#3777d9", // 边界线的颜色
457316
- width: 1, // 边界线的宽度
457317
- }),
457318
- });
457319
- },
457320
- });
457321
- this.map.addLayer(vectorLayer);
457322
- });
457290
+ // let geoJSONUrl = 'http://10.166.154.218:8081/imgforGis/china_full.json'
457291
+ // fetch(geoJSONUrl)
457292
+ // .then((response) => response.json())
457293
+ // .then((data) => {
457294
+ // let geoJSONFormat = new GeoJSON();
457295
+ // let vectorLayer = new VectorLayer({
457296
+ // layerName: "xxxx",
457297
+ // source: new VectorSource({
457298
+ // format: geoJSONFormat,
457299
+ // features: geoJSONFormat.readFeatures(data, {
457300
+ // dataProjection: "EPSG:4326",
457301
+ // featureProjection: "EPSG:3857",
457302
+ // }),
457303
+ // }),
457304
+ // zIndex: 0,
457305
+ // opacity: 1,
457306
+ // style: function (feature) {
457307
+ // return new Style({
457308
+ // fill: new Fill({
457309
+ // color: "#103253"//"#142747", // 填充颜色
457310
+ // }),
457311
+ // stroke: new Stroke({
457312
+ // color: "#3777d9", // 边界线颜色
457313
+ // width: 1, // 边界线宽度
457314
+ // }),
457315
+ // });
457316
+ // },
457317
+ // });
457318
+ // this.map.addLayer(vectorLayer);
457319
+ // });
457323
457320
 
457324
457321
  //监听点击事件
457325
457322
  let elPopup = this.$refs.popup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-map-universal",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "GIS通用组件",
5
5
  "main": "gismap.umd.js",
6
6
  "private": false,