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.
- package/gismap.umd.js +38 -41
- 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/
|
|
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-
|
|
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:
|
|
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
|
-
|
|
457292
|
-
|
|
457293
|
-
|
|
457294
|
-
|
|
457295
|
-
|
|
457296
|
-
|
|
457297
|
-
|
|
457298
|
-
|
|
457299
|
-
|
|
457300
|
-
|
|
457301
|
-
|
|
457302
|
-
|
|
457303
|
-
|
|
457304
|
-
|
|
457305
|
-
|
|
457306
|
-
|
|
457307
|
-
|
|
457308
|
-
|
|
457309
|
-
|
|
457310
|
-
|
|
457311
|
-
|
|
457312
|
-
|
|
457313
|
-
|
|
457314
|
-
|
|
457315
|
-
|
|
457316
|
-
|
|
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;
|