ansel0926
2022-05-17 00b733dc6ae372be365a01046ead5c062d8f5617
assets/service/drawService.js
@@ -44,6 +44,21 @@
    CesiumDraw.drawLabel(options);
}
function drawText(text) {
    var options = {
        'viewer': viewer,
        'label': {
            'text': text,
            'font': '30px SimSun',
            'fillColor': Cesium.Color.RED,
            'outlineColor': Cesium.Color.BLACK,
            'outlineWidth': 2,
            'style': Cesium.LabelStyle.FILL_AND_OUTLINE,
            'scaleByDistance': new Cesium.NearFarScalar(100, 1.0, 200, 0.4)
        },
    }
    CesiumDraw.drawText(options);
}
function clearDraw() {
    var options = {
        'viewer': viewer, //全局Cesium对象