Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
89def7c3
Commit
89def7c3
authored
Feb 11, 2021
by
Eric - kg6wxc
Browse files
Revert "Merge branch 'master' into 'master'"
This reverts merge request
!28
parent
a643b0f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/map_functions.inc
View file @
89def7c3
...
@@ -1155,26 +1155,29 @@ function create_MapImage()
...
@@ -1155,26 +1155,29 @@ function create_MapImage()
});
\n\n
});
\n\n
}
}
//SPIDERFY
//SPIDERFY
currZoom = e.target._zoom;
var oms = new Spiderfy(map);
if(currZoom >= 0) {
oms.enable();
oms.disable();
document.getElementById('spiderfyActive').style.visibility = 'visible';
map.on('zoomend', function(e) {
oms.addListener('activate', function(markers) {
currZoom = e.target._zoom;
for(var i = 0; i < markers.length; i++) {
if(currZoom >= 12) {
markers[i].closePopup();
oms.enable();
}
document.getElementById('spiderfyActive').style.visibility = 'visible';
});
oms.addListener('activate', function(markers) {
}if(currZoom <= 11) {
for(var i = 0; i < markers.length; i++) {
oms.disable();
markers[i].closePopup();
document.getElementById('spiderfyActive').style.visibility = 'hidden';
}
oms.removeListener('activate', function(markers) {
});
for(var i = 0; i < markers.length; i++) {
}else {
markers[i].closePopup();
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
;
return
$Content
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment