Skip to content

Commit 3f2f1a5

Browse files
author
caoxinke
committed
fix mvt4326解析字体样式报错的问题。
1 parent fb7099b commit 3f2f1a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/iclient9-openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9155,7 +9155,7 @@ ol.supermap.StyleUtils = {
91559155
shader = feature.getProperties().textStyle;
91569156
}
91579157
if (feature.getProperties().TEXT_STYLE_INFO) {
9158-
shader = feature.getProperties().TEXT_STYLE_INFO;
9158+
shader = JSON.parse(feature.getProperties().TEXT_STYLE_INFO).textStyle;
91599159
}
91609160
if (shader && shader !== "{}") {
91619161
var fontStr = "";

src/openlayers/core/StyleUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ol.supermap.StyleUtils = {
3232
shader = feature.getProperties().textStyle;
3333
}
3434
if (feature.getProperties().TEXT_STYLE_INFO) {
35-
shader = feature.getProperties().TEXT_STYLE_INFO;
35+
shader = JSON.parse(feature.getProperties().TEXT_STYLE_INFO).textStyle;
3636
}
3737
if (shader && shader !== "{}") {
3838
var fontStr = "";

0 commit comments

Comments
 (0)