zzq 2024-02-07 14:57:01 +08:00
commit e38c02f60c
5 changed files with 24 additions and 4 deletions

BIN
public/img/suidao.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -234,6 +234,9 @@
user-select: none;
width: 55px;
height: 55px;
border-radius: 50%;
/* background:url(./img//pointer.png);
background-size:100% 100%; */
}
.mars3d-compass .mars3d-compass-outer {
position: absolute;
@ -244,11 +247,15 @@
background-repeat: no-repeat;
background-size: contain;
fill: #3f4854;
border-radius: 50%;
/* border-radius: 50%; */
line-height:55px;
/* background:red; */
}
.mars3d-compass .mars3d-compass-outer svg {
height: 55px;
width: 55px;
position:absolute;
top:0px;
}
.mars3d-compass .mars3d-compass-inner {
position: relative;
@ -263,6 +270,7 @@
box-sizing: border-box;
background: #ffffff;
fill: #68adfe;
display: none;
}
.mars3d-compass .mars3d-compass-rotation-arc {
position: absolute;

File diff suppressed because one or more lines are too long

View File

@ -111,9 +111,21 @@ export default {
"clampToGround": true
}
attribute.zIndex = 10000000000;
}
}
if(attribute.symbol && attribute.symbol.styleOptions && attribute.symbol.styleOptions.label){
attribute.symbol.styleOptions.label.pixelOffsetY = -40
attribute.symbol.styleOptions.label = {
text: "{name}",
font_size: 14,
color: Cesium.Color.AZURE,
outline: true,
outlineColor: Cesium.Color.BLACK,
outlineWidth: 2,
horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
// pixelOffset: new Cesium.Cartesian2(10, -25) //
pixelOffsetY:-40
}
}
attribute.pid = group.id;
// 223
@ -146,7 +158,7 @@ export default {
const mapOptions = {
...options,
...this.options,
};
};
//
var map = new mars3d.Map(`mars3d-container${this.mapKey}`, mapOptions);