Update max links to include dependencies
This commit is contained in:
parent
8a7ed3dfb2
commit
65c019845d
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @id max-links@boombuler
|
||||
// @name IITC plugin: Max Links
|
||||
// @version 0.2.1.@@DATETIMEVERSION@@
|
||||
// @version 0.3.@@DATETIMEVERSION@@
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Calculates how to link the portals to create the maximum number of fields.
|
||||
@ -32,8 +32,6 @@ window.plugin.maxLinks.STROKE_STYLE = {
|
||||
clickable: false,
|
||||
smoothFactor: 10
|
||||
};
|
||||
window.plugin.maxLinks._delaunayScriptLocation = '@@RESOURCEURLBASE@@/delaunay.js';
|
||||
|
||||
window.plugin.maxLinks.layer = null;
|
||||
|
||||
window.plugin.maxLinks._updating = false;
|
||||
@ -85,7 +83,9 @@ window.plugin.maxLinks.updateLayer = function() {
|
||||
}
|
||||
|
||||
window.plugin.maxLinks.setup = function() {
|
||||
load(window.plugin.maxLinks._delaunayScriptLocation).thenRun(function() {
|
||||
try { console.log('Loading delaunay JS now'); } catch(e) {}
|
||||
@@INCLUDERAW:dist/delaunay.js@@
|
||||
try { console.log('done loading delaunay JS'); } catch(e) {}
|
||||
|
||||
window.delaunay.Triangle.prototype.draw = function(layer, divX, divY) {
|
||||
var drawLine = function(src, dest) {
|
||||
@ -117,7 +117,6 @@ window.plugin.maxLinks.setup = function() {
|
||||
});
|
||||
window.map.on('zoomend moveend', window.plugin.maxLinks.updateLayer);
|
||||
window.layerChooser.addOverlay(window.plugin.maxLinks.layer, 'Maximum Links');
|
||||
});
|
||||
}
|
||||
var setup = window.plugin.maxLinks.setup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user