Skip to content

Commit 2580892

Browse files
author
潘卓然-中地数码台式机
committed
补充arcserver的wms服务的加载以及帮助说明
1 parent 0788762 commit 2580892

3 files changed

Lines changed: 28 additions & 3 deletions

File tree

demo/leaflet/example/map/mapdisplay/arcgismapdisplay.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
//参考坐标系,默认是墨卡托坐标系(EPSG3857),EPSG4326为经纬度坐标系
1515
crs: L.CRS.EPSG4326,
1616
//显示中心
17-
center: [45, -90],
17+
center: [27, 113],
1818
//最小显示等级
1919
minZoom: 0,
2020
//最大显示等级
2121
maxZoom: 15,
2222
//当前显示等级
23-
zoom: 2,
23+
zoom: 6,
2424
//限制显示地理范围
2525
maxBounds: L.latLngBounds(L.latLng(-180, -180), L.latLng(180, 180))
2626
});
27-
var Layer = L.tileLayer.wms('http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer?', {
27+
var Layer = L.tileLayer.wms('http://222.247.40.204:6080/arcgis/services/hnbianjiexian/MapServer/WMSServer?', {
2828
//图层序列号
2929
layers: '0,1,2',
3030
//wms版本号
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### arcgis wms服务
2+
3+
> [ArcGIS服务](http://222.247.40.204:6080/arcgis/rest/services/hnbianjiexian/MapServer)
4+
5+
> > 点击上面的网页,弹出对应的网页如下所示:
6+
7+
8+
![igserver](../demo/leaflet/markdown/map/mapdisplay/arcserver.png)
9+
10+
1. `关注上面的红色框,第一个红色框需要注意的是一定要发布对应的WMS服务即出现“WMS”关键字眼`
11+
> 如果没有WMS选项,请先发布个WMS服务,要不然webclient脚本调用不了
12+
2. 点击wms,获得对应的链接 http://222.247.40.204:6080/arcgis/services/hnbianjiexian/MapServer/WMSServer?request=GetCapabilities&service=WMS
13+
3. 将上面链接 `` 号之前的地址复制到脚本里面
14+
``` javascript
15+
var Layer = L.tileLayer.wms('http://222.247.40.204:6080/arcgis/services/hnbianjiexian/MapServer/WMSServer?', {
16+
//图层序列号
17+
layers: '0,1,2',
18+
//wms版本号
19+
version: '1.3.0',
20+
//设置地图不连续显示
21+
noWrap:true
22+
}).addTo(map);
23+
```
24+
4. 设置对应的中心点,请注意 `纬度在前面, 经度在后面` 与正常的习惯相反
25+
5. 设置对应的显示级别
37.1 KB
Loading

0 commit comments

Comments
 (0)