cd-mapgis 1.1.33 → 1.1.34
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/package.json +1 -1
- package/src/StyleUtil.js +2 -0
package/package.json
CHANGED
package/src/StyleUtil.js
CHANGED
|
@@ -223,6 +223,7 @@ export default class StyleUtil {
|
|
|
223
223
|
case 'LineString':
|
|
224
224
|
case 'MultiLineString':
|
|
225
225
|
styleParam.stroke = StyleUtil._getStyle_stroke(style);
|
|
226
|
+
styleParam.text = StyleUtil._getStyle_text(style);
|
|
226
227
|
break;
|
|
227
228
|
// 面 / 多面 / 圆
|
|
228
229
|
case 'Polygon':
|
|
@@ -230,6 +231,7 @@ export default class StyleUtil {
|
|
|
230
231
|
case 'Circle':
|
|
231
232
|
styleParam.stroke = StyleUtil._getStyle_stroke(style);
|
|
232
233
|
styleParam.fill = StyleUtil._getStyle_fill(style);
|
|
234
|
+
styleParam.text = StyleUtil._getStyle_text(style);
|
|
233
235
|
break;
|
|
234
236
|
default:
|
|
235
237
|
console.error("获取样式不支持的几何类型:" + geoType);
|