recalculate the links as soon as the portals are loaded
This commit is contained in:
parent
6c4ccdff94
commit
799a1012ed
@ -104,6 +104,11 @@ window.plugin.maxLinks.setup = function() {
|
|||||||
e.reached = true;
|
e.reached = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.addHook('portalDataLoaded', function(e) {
|
||||||
|
if (window.map.hasLayer(window.plugin.maxLinks.layer))
|
||||||
|
window.plugin.maxLinks.updateLayer();
|
||||||
|
});
|
||||||
|
|
||||||
window.map.on('layeradd', function(e) {
|
window.map.on('layeradd', function(e) {
|
||||||
if (e.layer === window.plugin.maxLinks.layer)
|
if (e.layer === window.plugin.maxLinks.layer)
|
||||||
window.plugin.maxLinks.updateLayer();
|
window.plugin.maxLinks.updateLayer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user