Default examples should work in IE

This commit is contained in:
danzel
2012-07-24 14:58:21 +12:00
parent 9630bbd1f1
commit 184a919fec
3 changed files with 3 additions and 5 deletions

View File

@ -56,8 +56,6 @@
var polygon;
markers.on('clustermouseover', function (a) {
console.log('cluster ' + a.layer.getAllChildMarkers().length);
if (polygon) {
map.removeLayer(polygon);
}

View File

@ -12,6 +12,7 @@
<link rel="stylesheet" href="../src/MarkerCluster.css" />
<link rel="stylesheet" href="../src/MarkerCluster.Default.css" />
<script src="../src/MarkerCluster.Default.js"></script>
<script src="../src/MarkerClusterGroup.js"></script>
<script src="../src/MarkerCluster.js"></script>
<script src="../src/MarkerCluster.Spiderfier.js"></script>
@ -53,7 +54,6 @@
}
markers.on('clusterclick', function (a) {
console.log('cluster ' + a.layer.getAllChildMarkers().length);
a.layer.spiderfy();
});

View File

@ -62,10 +62,10 @@
}
markers.on('clusterclick', function (a) {
console.log('cluster ' + a.layer.getAllChildMarkers().length);
alert('cluster ' + a.layer.getAllChildMarkers().length);
});
markers.on('click', function (a) {
console.log('marker ' + a.layer);
alert('marker ' + a.layer);
});
populate();