Skip to content

Commit b73184f

Browse files
committed
【update】vue/react 标签图层例子弹窗宽度优化; review by songym
1 parent 886e78b commit b73184f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/component/components_labeltheme_react.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
}
136136

137137
if (!popup) {
138-
popup = new mapboxgl.Popup();
138+
popup = new mapboxgl.Popup(({ maxWidth: 600 }));
139139
}
140140

141141
var statisticsData = getStatisticsData();

examples/component/components_labeltheme_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
}
161161

162162
if (!this.popup) {
163-
this.popup = new mapboxgl.Popup();
163+
this.popup = new mapboxgl.Popup({ maxWidth: 600 });
164164
}
165165

166166
var statisticsData = this.getStatisticsData();

0 commit comments

Comments
 (0)