File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ export default class ApplicationController extends Controller.extend(
135
135
136
136
this . model . layerGroups
137
137
. filter ( ( { visible } ) => visible )
138
- . forEach ( ( model ) => this . toggleLayerVisibilityToFalse ( model ) ) ;
138
+ . forEach (
139
+ ( model ) =>
140
+ model . id !== 'street-centerlines' &&
141
+ this . toggleLayerVisibilityToFalse ( model )
142
+ ) ;
139
143
this . handleLayerGroupChange ( ) ;
140
144
141
145
this . set ( 'layerGroupsStorage' , tempStorage ) ;
@@ -185,7 +189,9 @@ export default class ApplicationController extends Controller.extend(
185
189
@computed ( 'layerGroupsStorage' , 'model.layerGroups' )
186
190
get showToggleLayersBackOn ( ) {
187
191
if (
188
- this . model . layerGroups . filter ( ( { visible } ) => visible ) . length === 0 &&
192
+ this . model . layerGroups . filter (
193
+ ( { id, visible } ) => visible && id !== 'street-centerlines'
194
+ ) . length === 0 &&
189
195
this . layerGroupsStorage
190
196
) {
191
197
return true ;
You can’t perform that action at this time.
0 commit comments