Skip to content

Commit ab810f4

Browse files
Supporting a new CSP to the map
2 parents f7c8846 + 0ec18f2 commit ab810f4

File tree

1 file changed

+5
-58
lines changed

1 file changed

+5
-58
lines changed

index.js

Lines changed: 5 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -308,59 +308,6 @@ function endpointChanged() {
308308
}
309309
window.endpointChanged = endpointChanged;
310310

311-
var mcisGeo2 = [];
312-
//mcisGeo2.push([-180, -90]);
313-
314-
for (var i = 0; i < cntInit; ++i) {
315-
var lon = 300 * Math.random() - 180;
316-
var lat = 100 * Math.random() - 90;
317-
318-
var testPoints = [];
319-
320-
lon = -60;
321-
lat = -60;
322-
323-
if (i == 0) {
324-
testPoints.push([-42, -19]);
325-
testPoints.push([-44, -11]);
326-
testPoints.push([27, -29]);
327-
testPoints.push([29, -25]);
328-
mcisName[i] = "[M1] " + "Running-(4/4)";
329-
mcisStatus[i] = "Running-(4/4)";
330-
}
331-
if (i == 1) {
332-
testPoints.push([-121, 45]);
333-
testPoints.push([-100, 46]);
334-
testPoints.push([-80, 35]);
335-
testPoints.push([-117, 34]);
336-
mcisName[i] = "[M2] " + "Running-(4/4)";
337-
mcisStatus[i] = "Running-(4/4)";
338-
}
339-
if (i == 2) {
340-
testPoints.push([2, 49]);
341-
testPoints.push([14, 52]);
342-
testPoints.push([22, 51]);
343-
testPoints.push([23, 48]);
344-
testPoints.push([13, 46]);
345-
testPoints.push([7, 45]);
346-
mcisName[i] = "[M3] " + "Running-(6/6)";
347-
mcisStatus[i] = "Running-(6/6)";
348-
}
349-
350-
mcisGeo[i] = new Polygon([
351-
[
352-
[lon, lat],
353-
[lon + 5, lat + 5],
354-
[lon - 5, lat - 5],
355-
[lon, lat],
356-
],
357-
]);
358-
geometriesPoints[i] = new MultiPoint([testPoints]);
359-
360-
testPoints = convexHull(testPoints);
361-
testPoints.push(testPoints[0]);
362-
geometries[i] = new Polygon([testPoints]);
363-
}
364311

365312
var alpha = 0.3;
366313
var cororList = [
@@ -469,9 +416,9 @@ const cspIconImg = {
469416
tencent: "img/tencent.png",
470417
ncpvpc: "img/ncpvpc.png",
471418
ncp: "img/ncp.png",
472-
ktvpc: "img/ktvpc.png",
473-
kt: "img/kt.png",
474-
nhn: "img/nhn.png",
419+
ktcloud: "img/kt.png",
420+
ktcloudvpc: "img/ktvpc.png",
421+
nhncloud: "img/nhn.png",
475422

476423
// Add more CSP icons here
477424
};
@@ -3167,7 +3114,7 @@ window.onload = function () {
31673114

31683115
// Draw
31693116

3170-
function drawMCIS(event) {
3117+
function drawObjects(event) {
31713118
//event.frameState = event.frameState / 10;
31723119
//console.log("event.frameState");
31733120
//console.log(event.frameState);
@@ -3261,7 +3208,7 @@ function drawMCIS(event) {
32613208
}
32623209

32633210
tileLayer.on("postrender", function (event) {
3264-
drawMCIS(event);
3211+
drawObjects(event);
32653212
});
32663213

32673214
// Section for general tools

0 commit comments

Comments
 (0)