Skip to content

Commit aed606a

Browse files
committed
修改绘制图层加载顺序
1 parent 0bb9843 commit aed606a

File tree

2 files changed

+2204
-1806
lines changed

2 files changed

+2204
-1806
lines changed

packages/maplugin-core/managers/geojson-draw-manager.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,6 @@ export class DrawManager {
8282
filter: ['==', '$type', 'Polygon']
8383
});
8484

85-
glManager.addLayer({
86-
id: this.id_layer_polygon_circle,
87-
type: 'circle',
88-
paint: {
89-
'circle-color': "#fbb03b",
90-
'circle-radius': 5,
91-
'circle-stroke-color': '#fff',
92-
'circle-stroke-width': 2,
93-
},
94-
filter: ['==', '$type', 'Polygon']
95-
});
96-
9785
glManager.addLayer({
9886
id: this.id_layer_polygon_outline,
9987
type: 'line',
@@ -114,6 +102,18 @@ export class DrawManager {
114102
}
115103
});
116104

105+
glManager.addLayer({
106+
id: this.id_layer_polygon_circle,
107+
type: 'circle',
108+
paint: {
109+
'circle-color': "#fbb03b",
110+
'circle-radius': 5,
111+
'circle-stroke-color': '#fff',
112+
'circle-stroke-width': 2,
113+
},
114+
filter: ['==', '$type', 'Polygon']
115+
});
116+
117117
glManager.on('clear', () => {
118118
((glManager.map as any).getSource(this.id_layer_polygon_subline)).setData({
119119
type: 'FeatureCollection',

0 commit comments

Comments
 (0)