CesiumGS / 3d-tiles

Specification for streaming massive heterogeneous 3D geospatial datasets :earth_americas:
2.1k stars 465 forks source link

Does vctr support labels? #465

Closed tengge1 closed 2 years ago

tengge1 commented 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.

lilleyse commented 2 years ago

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.