Skip to content

Commit 15a7951

Browse files
committed
2 parents 30e11a5 + 1d3e8d9 commit 15a7951

6 files changed

Lines changed: 118 additions & 2 deletions

File tree

config/config-leaflet.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,29 @@ var config = {
370370
folder: "customtile",
371371
leaffolder: true,
372372
childs: [{
373-
name: "高斯投影-3857",
373+
name: "高斯投影-开源实现",
374374
file: "gauss",
375375
diffcult: "1",
376376
detail: "高斯投影",
377377
icon: "gauss.png",
378378
update: "最后更新时间:2018-06-05",
379379
person:"基础平台/创新中心-潘卓然"
380+
},{
381+
name: "EPSG4610-中地内置",
382+
file: "epsg4610",
383+
diffcult: "1",
384+
detail: "EPSG4610: 经纬度裁图,西安80椭球 ",
385+
icon: "epsg4610.png",
386+
update: "最后更新时间:2018-10-17",
387+
person:"基础平台-龚跃健"
388+
},{
389+
name: "EPSG4610-开源实现",
390+
file: "epsg4610proj",
391+
diffcult: "1",
392+
detail: "EPSG4610: 经纬度裁图,西安80椭球 ",
393+
icon: "epsg4610proj.png",
394+
update: "最后更新时间:2018-10-17",
395+
person:"基础平台/创新中心-潘卓然"
380396
}]
381397
}
382398
]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>EPSG4610: 经纬度裁图,西安80椭球</title>
7+
<script include="jquery" src="../../libs/zondyclient/include-lib-local.js"></script>
8+
<script src="../../libs/zondyclient/include-leaflet-local.js"></script>
9+
<style>
10+
#map {
11+
height: 800px
12+
}
13+
</style>
14+
</head>
15+
16+
<body>
17+
<div id="map"></div>
18+
<script>
19+
//EPSG4610: 经纬度裁图,西安80椭球
20+
map = L.map('map', {
21+
crs: L.CRS.EPSG4610,
22+
center: [37.09, 114.80], //注意这里要使用经纬度坐标
23+
zoom: 1,
24+
continuousWorld: true,
25+
worldCopyJump: false,
26+
});
27+
28+
L.tileLayer('http://192.168.10.185:6163/igs/rest/mrms/tile/EPSG_4610/{z}/{y}/{x}', {
29+
attribution: '<a href="#">EPSG4610: 经纬度裁图,西安80椭球</a>',
30+
maxZoom: 5,
31+
minZoom: 0
32+
}).addTo(map);
33+
34+
L.circle([37.09, 114.80], {
35+
radius: 100,
36+
color: 'red',
37+
fillColor: '#f03',
38+
fillOpacity: 1
39+
}).addTo(map);
40+
</script>
41+
</body>
42+
43+
</html>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>EPSG4610: 经纬度裁图,西安80椭球</title>
7+
<script include="jquery" src="../../libs/zondyclient/include-lib-local.js"></script>
8+
<script include="proj4" src="../../libs/zondyclient/include-leaflet-local.js"></script>
9+
<style>
10+
#map {
11+
height: 800px
12+
}
13+
</style>
14+
</head>
15+
16+
<body>
17+
<div id="map"></div>
18+
<script>
19+
var Xian80_Resolutions = [];
20+
for (var i = 1; i < 19; i++) {
21+
//360度 除以 256像素
22+
Xian80_Resolutions.push(0.703125 * 2 / (Math.pow(2, i)));
23+
}
24+
25+
//EPSG4610: 经纬度裁图,西安80椭球
26+
var epsg4610 = new L.Proj.CRS("EPSG:4610",
27+
"+proj=longlat +a=6378140 +b=6356755.288157528 +units=degrees +no_defs",
28+
{
29+
resolutions: Xian80_Resolutions,
30+
origin: [-180, 90],
31+
bounds: L.bounds([-180, -90], [180, 90])
32+
});
33+
34+
map = L.map('map', {
35+
crs: epsg4610,
36+
center: [37.09, 114.80], //注意这里要使用经纬度坐标
37+
zoom: 1,
38+
continuousWorld: true,
39+
worldCopyJump: false,
40+
});
41+
42+
L.tileLayer('http://192.168.10.185:6163/igs/rest/mrms/tile/EPSG_4610/{z}/{y}/{x}', {
43+
attribution: '<a href="#">EPSG4610: 经纬度裁图,西安80椭球</a>',
44+
maxZoom: 5,
45+
minZoom: 0
46+
}).addTo(map);
47+
48+
L.circle([37.09, 114.80], {
49+
radius: 100,
50+
color: 'red',
51+
fillColor: '#f03',
52+
fillOpacity: 1
53+
}).addTo(map);
54+
</script>
55+
</body>
56+
57+
</html>

demo/leaflet/example/map/customtile/gauss.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
worldCopyJump: false,
4040
});
4141

42-
L.tileLayer('http://localhost:6163/igs/rest/mrms/tile/高斯坐标/{z}/{y}/{x}', {
42+
L.tileLayer('http://192.168.10.185:6163/igs/rest/mrms/tile/高斯坐标/{z}/{y}/{x}', {
4343
attribution: '<a href="#">MapGIS高斯坐标</a>',
4444
maxZoom: 5,
4545
minZoom: 0
6.61 KB
Loading
6.57 KB
Loading

0 commit comments

Comments
 (0)