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
|
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Kakao 지도 시작하기</title> </head> <body> asdasdasd <div id="map" style="width:900px;height:800px;"></div> <script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=b0d61840851b6ace9461c5a020647164"></script> <script> var container = document.getElementById('map'); var options = { center: new kakao.maps.LatLng(33.450701, 126.570667), level: 3 };
var map = new kakao.maps.Map(container, options);
// 커스텀 오버레이에 표시할 내용입니다 // HTML 문자열 또는 Dom Element 입니다 var content = '<div class ="label"><span class="left"></span><span class="center"><img src="http://www.lulushop.co.kr/data/ico/logo_pc_1" ></span><span class="right"></span></div>';
// 커스텀 오버레이가 표시될 위치입니다 var position = new kakao.maps.LatLng(33.450701, 126.570667);
// 커스텀 오버레이를 생성합니다 var customOverlay = new kakao.maps.CustomOverlay({ position: position, content: content });
// 커스텀 오버레이를 지도에 표시합니다 customOverlay.setMap(map);
// HTML 문자열 또는 Dom Element 입니다 var content = '<div class ="label"><span class="left"></span><span class="center"><img src="http://j3.ebizmall.co.kr/data/ico/logo_pc_1" ></span><span class="right"></span></div>';
// 커스텀 오버레이가 표시될 위치입니다 var position = new kakao.maps.LatLng(33.453701, 126.570667);
// 커스텀 오버레이를 생성합니다 var customOverlay = new kakao.maps.CustomOverlay({ position: position, content: content });
// 커스텀 오버레이를 지도에 표시합니다 customOverlay.setMap(map); </script> </body> </html>
|