Skip to content

Commit c179140

Browse files
Fix path name for k8s obj
2 parents d69dfae + 48dc045 commit c179140

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ var iconStyleK8s = new Style({
435435
crossOrigin: "anonymous",
436436
src: "img/iconK8s.png",
437437
opacity: 1.0,
438-
scale: 1.0,
438+
scale: 0.7,
439439
}),
440440
});
441441

@@ -1024,16 +1024,18 @@ function getMci() {
10241024
timeout: 10000,
10251025
}).then((res) => {
10261026
var obj = res.data;
1027-
if (obj.cluster != null) {
1027+
if (obj.K8sClusterInfo != null) {
10281028
var resourceLocation = [];
1029-
for (let item of obj.cluster) {
1029+
for (let item of obj.K8sClusterInfo) {
10301030
resourceLocation.push([
10311031
item.connectionConfig.regionDetail.location.longitude * 1 +
10321032
(returnAdjustmentPoint(j).ax / zoomLevel) * radius,
1033-
item.connectionConfig.regionDetail.location.latitude * 1 - 0.5 +
1033+
item.connectionConfig.regionDetail.location.latitude * 1 +
10341034
(returnAdjustmentPoint(j).ay / zoomLevel) * radius,
10351035
]);
1036-
geoResourceLocation.k8s[0] = new MultiPoint([resourceLocation]);
1036+
geoResourceLocation.k8s[0] = new MultiPoint([resourceLocation]);
1037+
console.log("geoResourceLocation.k8s[0]");
1038+
console.log(geoResourceLocation.k8s[0]);
10371039
}
10381040
} else {
10391041
geoResourceLocation.k8s = [];

0 commit comments

Comments
 (0)