-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateMap.html
More file actions
56 lines (50 loc) · 1.64 KB
/
createMap.html
File metadata and controls
56 lines (50 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<link href="https://developer.geon.kr/js/odf/odf.css" rel="stylesheet">
<script type="text/javascript" src="https://developer.geon.kr/js/odf/odf.min.js"></script>
</head>
<body>
<div id="map" class="odf-view" style="height:550px;"></div>
</body>
<script>
/* 맵 타겟 */
var mapContainer = document.getElementById('map');
/* 맵 중심점 */
var coord = new odf.Coordinate(199312.9996,551784.6924);
/* 맵객체 옵션 (외부에서 사용할 때는 proxyURL, proxyParam 옵션이 필요합니다.) */
var mapOption = {
center : coord,
zoom : 11,
projection : 'EPSG:5186',
//proxyURL: 'proxyUrl.jsp',
//proxyParam: 'url',
vWorldURL : 'https://gsapi.geon.kr/map/api/vworld/wmts',
basemap : {
vWorld : ['vWorldBase', 'vWorldWhite', 'vWorldMidnight', 'vWorldHybrid', 'vWorldSatellite'],
},
};
/*
* 배경지도 종류
eMapBasic - 바로e맵 일반 지도
eMapColor - 바로e맵 색각 지도
eMapLowV - 바로e맵 큰글씨 지도
eMapWhite - 바로e맵 백지도
eMapEnglish - 바로e맵 영어 지도
eMapChinese - 바로e맵 중어 지도
eMapJapanese - 바로e맵 일어 지도
eMapWhiteEdu - 바로e맵 교육용 백지도
eMapAIR - 바로e맵 항공지도
eMapSatellite - 바로e맵 위성지도
* 프록시 사용
proxyURL: 'proxy.jsp' 프록시 설정
*/
/* 맵객체 생성 (외부에서 사용할 때는 proxyURL, proxyParam 옵션이 필요합니다.) */
var map = new odf.Map(mapContainer, mapOption);
//최소 줌 레벨 설정
map.getView().setMinZoom(8);
//최대 줌 레벨 설정
map.getView().setMaxZoom(23);
</script>
</html>