huweili-cesium 1.2.20 → 1.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/dronePlannedRoute.js +2 -2
- package/package.json +1 -1
package/js/dronePlannedRoute.js
CHANGED
|
@@ -94,7 +94,7 @@ export function dronePlannedRouteConfig() {
|
|
|
94
94
|
const lineColor = options.lineColor || DEFAULT_LINE_COLOR
|
|
95
95
|
const lineWidth = Number(options.lineWidth) || DEFAULT_LINE_WIDTH
|
|
96
96
|
const showWaypointLabels = options.showWaypointLabels !== false
|
|
97
|
-
const waypointPixelSize = Number(options.waypointPixelSize) ||
|
|
97
|
+
const waypointPixelSize = Number(options.waypointPixelSize) || 6
|
|
98
98
|
const color = Cesium.Color.fromCssColorString(lineColor)
|
|
99
99
|
|
|
100
100
|
const positions = normalized.map((wp) =>
|
|
@@ -141,7 +141,7 @@ export function dronePlannedRouteConfig() {
|
|
|
141
141
|
label: showWaypointLabels
|
|
142
142
|
? {
|
|
143
143
|
text: `航点${i + 1}`,
|
|
144
|
-
font: '
|
|
144
|
+
font: '10px Microsoft YaHei, sans-serif',
|
|
145
145
|
fillColor: Cesium.Color.WHITE,
|
|
146
146
|
outlineColor: Cesium.Color.BLACK,
|
|
147
147
|
outlineWidth: 2,
|