0
숨바꼭질, 마커 클러스터 러 내 마커가 여기에 같이 분류 표시되지 않는 이유마커 클러스터 러 Google지도
가 나도 몰라 :
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
function initialize() {
var center = new google.maps.LatLng(48.136, 11.586);
var myOptions = {
zoom: 3,
center: center,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);
var points = [];
for (var i = 0; i < 600; i++) {
var point = new google.maps.Marker({
position: new google.maps.LatLng(48.135 + Math.random(), 11.664 + Math.random()),
map: map,
title:"This is where I work"
});
points.push(point);
}
var cluster = new MarkerClusterer(map, points);
}
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width:1000px; height:1000px"></div>
</body>
</html>
:
http://media.svennerberg.com/2009/01/screenshot_clusterereffect.jpg
내 코드는 다음과 같다
하지만 작동하지 않습니다. 왜 작동하지 않는지 누가 알 수 있습니까? 들으
무엇 JSON 당신이 작동하지로드 할 필요가 않았다 그 이유는? 어떻게 고쳐 봤습니까? – clifgray
미안. 오래 전 이었지만 json이 나를 위해 무엇을했는지 더 이상 알지 못합니다. – user846290