ansel0926
2022-05-18 f0efddd9e32b9c5dc828401c4092be004b4826cf
assets/service/drawService.js
@@ -117,6 +117,23 @@
            "fontstyle":'SimSun',
        }
    }
    else if(type=='text'){
        var cartographic=Cesium.Cartographic.fromCartesian(drawEntity._position._value);
        var lng=Cesium.Math.toDegrees(cartographic.longitude);
        var lat=Cesium.Math.toDegrees(cartographic.latitude);
        var alt=cartographic.height;
        saveData= {
            "id":id,
            "type": type,
            "longitude": lng,
            "latitude": lat,
            "height": alt,
            "content":drawEntity.title,
            "color":drawEntity._label._fillColor._value.toCssColorString(),
            "fontsize":30,
            "fontstyle":'SimSun',
        }
    }
    let token = window.localStorage.getItem("token");
    $.ajax({