Closed tengge1 closed 3 years ago
I want to show some labels in the 3dtiles. I wonder if vctr can contain some labels. Such as the following data:
ver entity = viewer.entities.add({ position: Cesium.Cartesian3.fromDegrees(120.9677706,30.7985748,2.61), point: { color: Cesium.Color.RED, pixelSize: 10 }, label : { text : 'My Point', font : '14pt Source Han Sans CN', fillColor:Cesium.Color.BLACK, backgroundColor:Cesium.Color.AQUA, showBackground:true, style: Cesium.LabelStyle.FILL, outlineWidth : 2, verticalOrigin : Cesium.VerticalOrigin.CENTER, horizontalOrigin :Cesium.HorizontalOrigin.LEFT, pixelOffset:new Cesium.Cartesian2(10,0) } });
Thank you.
Hi @tengge1, see https://github.com/CesiumGS/3d-tiles/tree/vctr/Styling#vector-data for the full list of styling options for point features, including image.
image
I want to show some labels in the 3dtiles. I wonder if vctr can contain some labels. Such as the following data:
Thank you.