-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnaverMap.html
More file actions
58 lines (57 loc) · 1.73 KB
/
Copy pathnaverMap.html
File metadata and controls
58 lines (57 loc) · 1.73 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
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title>네이버 지도</title>
<script type="text/javascript" src="https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=bodfus6kt2"></script>
</head>
<body>
<h2>javascript Naver Map</h2>
<div id="map" style="width:200px;height:200px;"></div>
<h2>...</h2>
<div id="map2" style="width:200px;height:200px;"></div>
</div>
<div>
<h2> 지도앱 연동 URL Scheme Naver Map</h2>
</div>
<li>
<a href="nmap://map?&appname=com.example.myapp">네이버 지도앱(nmap://)</a>
</li>
<li>
<a href="market://details?id=packageName">앱스토어로 이동(market://)</a>
</li>
<li>
<a href="tel:010-8871-7846">내 전화(tel:010...)</a>
</li>
<li>
<a href="nmap://search?query=%EA%B0%95%EB%82%A8%EC%97%AD&appname=com.example.myapp">1. search?query=URL인코딩된 문자열</a>
</li>
<li>
<a href="nmap://search?query=코엑스+스타벅스&appname=com.example.myapp">2. search?query=코엑스+스타벅스</a>
</li>
</body>
<script>
var mapOptions = {
center: new naver.maps.LatLng(37.5, 127.0),
zoom: 17,
marker: marker
};
var map = new naver.maps.Map('map', mapOptions);
var marker = new naver.maps.Marker({
position: new naver.maps.LatLng(37.5, 127.0),
map: map
});
</script>
<script>
var map2 = new naver.maps.Map('map2', {
center: new naver.maps.LatLng(37.51164291160922, 127.05822796267397),
zoom: 15
});
var marker = new naver.maps.Marker({
position: new naver.maps.LatLng(37.51164291160922, 127.05822796267397),
map: map2
});
</script>
</html>