We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb9843 commit aed606aCopy full SHA for aed606a
packages/maplugin-core/managers/geojson-draw-manager.ts
@@ -82,18 +82,6 @@ export class DrawManager {
82
filter: ['==', '$type', 'Polygon']
83
});
84
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
-
97
glManager.addLayer({
98
id: this.id_layer_polygon_outline,
99
type: 'line',
@@ -114,6 +102,18 @@ export class DrawManager {
114
102
}
115
103
116
104
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
+ },
+ filter: ['==', '$type', 'Polygon']
+ });
+
117
glManager.on('clear', () => {
118
((glManager.map as any).getSource(this.id_layer_polygon_subline)).setData({
119
type: 'FeatureCollection',
0 commit comments