@@ -119,10 +119,7 @@ export function editStyles() {
119119 type : 'circle' ,
120120 filter : [ 'all' ,
121121 [ '==' , '$type' , 'Point' ] ,
122- [ '==' , 'meta' , 'midpoint' ] ,
123- // only show midpoints if this is not a route
124- // parent properties are patched into the midpoint properties
125- [ '!has' , 'user_route' ]
122+ [ '==' , 'meta' , 'midpoint' ]
126123 ] ,
127124 paint : {
128125 'circle-radius' : editDefaults . midpointSize ,
@@ -176,8 +173,7 @@ export function editStyles() {
176173 filter : [ 'all' ,
177174 [ '==' , 'meta' , 'vertex' ] ,
178175 [ '==' , '$type' , 'Point' ] ,
179- [ '!=' , 'mode' , 'static' ] ,
180- [ '!has' , 'user_route' ]
176+ [ '!=' , 'mode' , 'static' ]
181177 ] ,
182178 paint : {
183179 'circle-radius' : editDefaults . vertexSize ,
@@ -187,55 +183,20 @@ export function editStyles() {
187183 'circle-stroke-opacity' : 1
188184 }
189185 } ,
190- // inactive vertex points on lines + polygons (non-route)
186+ // inactive vertex points on lines + polygons
191187 {
192188 id : 'gl-draw-polygon-and-line-vertex-inactive' ,
193189 type : 'circle' ,
194190 filter : [ 'all' ,
195191 [ '==' , 'meta' , 'vertex' ] ,
196192 [ '==' , '$type' , 'Point' ] ,
197- [ '!=' , 'mode' , 'static' ] ,
198- [ '!has' , 'user_route' ]
193+ [ '!=' , 'mode' , 'static' ]
199194 ] ,
200195 paint : {
201196 'circle-radius' : editDefaults . vertexSize ,
202197 'circle-color' : editDefaults . highlightColor
203198 }
204199 } ,
205- // Route point borders (rendered like midpoints in normal linestring)
206- {
207- id : 'gl-draw-route-vertex-inactive-midpoint-border' ,
208- type : 'circle' ,
209- filter : [ 'all' ,
210- [ '==' , 'meta' , 'vertex' ] ,
211- [ '==' , '$type' , 'Point' ] ,
212- [ '!=' , 'mode' , 'static' ] ,
213- [ 'has' , 'user_route' ]
214- ] ,
215- paint : {
216- 'circle-radius' : editDefaults . routeVertexSize ,
217- 'circle-opacity' : 0 ,
218- 'circle-stroke-opacity' : 1 ,
219- 'circle-stroke-color' : editDefaults . routeVertexBorderColor ,
220- 'circle-stroke-width' : editDefaults . routeVertexBorderWidth ,
221- }
222- } ,
223- // Route midpoints (rendered like midpoints in normal linestring)
224- {
225- id : 'gl-draw-route-vertex-inactive-midpoint' ,
226- type : 'circle' ,
227- filter : [ 'all' ,
228- [ '==' , 'meta' , 'vertex' ] ,
229- [ '==' , '$type' , 'Point' ] ,
230- [ '!=' , 'mode' , 'static' ] ,
231- [ 'has' , 'user_route' ]
232- ] ,
233- paint : {
234- 'circle-radius' : editDefaults . routeVertexSize ,
235- 'circle-color' : editDefaults . routeVertexColor ,
236- 'circle-opacity' : editDefaults . routeVertexOpacity
237- }
238- } ,
239200 //
240201 // {
241202 // id: "maplibre-gl-directions-waypoint",
0 commit comments