guanqb
2023-03-31 ac19ae903dd740bdaf1499ae40ef4039fdb4e6ad
src/utils/tools/DrawTool.js
@@ -88,13 +88,14 @@
     * @private
     */
    _onCreateAnchor ({ position, isCenter = false }) {
        console.log(this._options, 6633333)
        return this._anchorLayer.entities.add({
            position: position,
            billboard: {
                image: isCenter ? this._options.icon_center : this._options.icon_anchor,
                width: this._options.icon_size[0],
                height: this._options.icon_size[1],
                // eyeOffset: new global.DC.Namespace.Cesium.Cartesian3(0, 0, -100),
                eyeOffset: new global.DC.Namespace.Cesium.Cartesian3(0, 0, -4),
                heightReference:
                    this._viewer.scene.mode === global.DC.Namespace.Cesium.SceneMode.SCENE3D &&
                        !this._options.clampToModel