File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ var iconStyleK8s = new Style({
435
435
crossOrigin : "anonymous" ,
436
436
src : "img/iconK8s.png" ,
437
437
opacity : 1.0 ,
438
- scale : 1.0 ,
438
+ scale : 0.7 ,
439
439
} ) ,
440
440
} ) ;
441
441
@@ -1024,16 +1024,18 @@ function getMci() {
1024
1024
timeout : 10000 ,
1025
1025
} ) . then ( ( res ) => {
1026
1026
var obj = res . data ;
1027
- if ( obj . cluster != null ) {
1027
+ if ( obj . K8sClusterInfo != null ) {
1028
1028
var resourceLocation = [ ] ;
1029
- for ( let item of obj . cluster ) {
1029
+ for ( let item of obj . K8sClusterInfo ) {
1030
1030
resourceLocation . push ( [
1031
1031
item . connectionConfig . regionDetail . location . longitude * 1 +
1032
1032
( returnAdjustmentPoint ( j ) . ax / zoomLevel ) * radius ,
1033
- item . connectionConfig . regionDetail . location . latitude * 1 - 0.5 +
1033
+ item . connectionConfig . regionDetail . location . latitude * 1 +
1034
1034
( returnAdjustmentPoint ( j ) . ay / zoomLevel ) * radius ,
1035
1035
] ) ;
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 ] ) ;
1037
1039
}
1038
1040
} else {
1039
1041
geoResourceLocation . k8s = [ ] ;
You can’t perform that action at this time.
0 commit comments