开发者

Google Maps Clusterer

How to get this thing work?

My code is:

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 
<script type="text/javas开发者_开发知识库cript">
    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>

I can't even get alert(1);?

What I did wrong?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜