Skip to content

Instantly share code, notes, and snippets.

@kkd927
Created August 9, 2014 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkd927/5c1c0929b6890c18e09f to your computer and use it in GitHub Desktop.
Save kkd927/5c1c0929b6890c18e09f to your computer and use it in GitHub Desktop.
[다음지도 API] 이미지 마커 올리기
<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=DAUM_MAPS_DEMO_APIKEY" charset="utf-8"></script>
<script type="text/javascript">
var map;
$(function init() {
map = new daum.maps.Map(document.getElementById('map'), {
center: new daum.maps.LatLng(37.537123, 127.005523),
level: 4
});
var points = [
new daum.maps.LatLng(37.538779843072824,127.00200500605618),
new daum.maps.LatLng(37.538635699652154,127.00030778301571),
new daum.maps.LatLng(37.537338259427315,126.9998325645435),
new daum.maps.LatLng(37.53377026138633,127.00288736856231),
new daum.maps.LatLng(37.534941239454476,127.00920075758009)
];
var icon = new daum.maps.MarkerImage(
'http://localimg.daum-img.net/localimages/07/2009/map/icon/blog_icon01_on.png',
new daum.maps.Size(31, 34),
new daum.maps.Point(16,34),
"poly",
"1,20,1,9,5,2,10,0,21,0,27,3,30,9,30,20,17,33,14,33"
);
for(var i = 0; i < points.length; i++)
{
new daum.maps.Marker({
position: points[i],
image: icon
}).setMap(map);
}
})
</script>
<div id="map" style="width:600px;height:600px;"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment