Commit 89d1e802 authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

Merge branch 'revert-a643b0f6' into 'master'

Revert "Merge branch 'master' into 'master'"

See merge request !29
parents a643b0f6 89def7c3
......@@ -1155,26 +1155,29 @@ function create_MapImage()
});\n\n
}
//SPIDERFY
currZoom = e.target._zoom;
if(currZoom >= 0) {
oms.enable();
document.getElementById('spiderfyActive').style.visibility = 'visible';
oms.addListener('activate', function(markers) {
for(var i = 0; i < markers.length; i++) {
markers[i].closePopup();
}
});
}if(currZoom <= 11) {
oms.disable();
document.getElementById('spiderfyActive').style.visibility = 'hidden';
oms.removeListener('activate', function(markers) {
for(var i = 0; i < markers.length; i++) {
markers[i].closePopup();
}
});
var oms = new Spiderfy(map);
oms.disable();
map.on('zoomend', function(e) {
currZoom = e.target._zoom;
if(currZoom >= 12) {
oms.enable();
document.getElementById('spiderfyActive').style.visibility = 'visible';
oms.addListener('activate', function(markers) {
for(var i = 0; i < markers.length; i++) {
markers[i].closePopup();
}
});
}else {
oms.disable();
document.getElementById('spiderfyActive').style.visibility = 'hidden';
oms.removeListener('activate', function(markers) {
for(var i = 0; i < markers.length; i++) {
markers[i].closePopup();
}
});
}
});
});
";
return $Content;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment