Google Maps Clusterer

时间:2011-05-12 09:45:21

标签: google-maps google-maps-markers markerclusterer

如何让这件事有用?

我的代码是:

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 
<script type="text/javascript">
    var markers = [];
    var markerClusterer = null;
    var map = null;

    function initialize()
    {
        var center = new google.maps.LatLng(65, 45);
        var options = {
            'zoom': 4,
            'center': center,
            'mapTypeId': google.maps.MapTypeId.ROADMAP
        };

        map = new google.maps.Map(document.getElementById("map"), options);
        markerClusterer = new MarkerClusterer(map);
        alert(1);
    }
    $(document).ready(function() { initialize(); });
</script>

我甚至无法获得alert(1);

我做错了什么?

0 个答案:

没有答案