-2
我正尝试在Google地图上对标记进行聚类。我发现这个例子http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/examples/simple_example.html 但我不能够理解它 -如何在谷歌地图上对标记进行聚类
<script type="text/javascript">
var script = '<script type="text/javascript" src="../src/markerclusterer';
if (document.location.search.indexOf('packed') !== -1) {
script += '_packed';
}
if (document.location.search.indexOf('compiled') !== -1) {
script += '_compiled';
}
script += '.js"><' + '/script>';
document.write(script);
</script>
什么是用于有充分SRC使用下面的代码。当我复制代码并在我的笔记本电脑上使用它时,它不起作用。请解释为什么?以及在谷歌地图上进行标记聚类的最佳方法是什么?
markercluseter或者markercluster? –
都不是。错字,应为[markerclusterer.js](http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js) – geocodezip