@@ -44,6 +44,7 @@ import {
44
44
import { getPSLSignsLayerProps , getPSLSignsMastLayerProps } from './extensions/SNCF/SNCF_PSL_SIGNS' ;
45
45
import { LayerContext } from './types' ;
46
46
import { getCatenariesProps , getCatenariesTextParams } from './Catenaries' ;
47
+ import configKPLabelLayer from './configKPLabelLayer' ;
47
48
import OrderedLayer from './OrderedLayer' ;
48
49
49
50
const SIGNAL_TYPE_KEY = 'extensions_sncf_installation_type' ;
@@ -146,6 +147,17 @@ function getSignalLayers(context: LayerContext, prefix: string): LayerProps[] {
146
147
return [
147
148
{ ...getSignalMatLayerProps ( context ) , id : `${ prefix } geo/signal-mat` } ,
148
149
{ ...getPointLayerProps ( context ) , id : `${ prefix } geo/signal-point` } ,
150
+ {
151
+ ...configKPLabelLayer ( {
152
+ colors : context . colors ,
153
+ fieldName : 'extensions_sncf_kp' ,
154
+ minzoom : 12 ,
155
+ isSignalisation : true ,
156
+ sourceLayer : context . sourceTable || '' ,
157
+ } ) ,
158
+ id : `${ prefix } geo/signal-kp` ,
159
+ filter : [ 'in' , 'extensions_sncf_installation_type' , ...context . symbolsList ] ,
160
+ } as LayerProps ,
149
161
] . concat (
150
162
context . symbolsList . map ( ( symbol ) => {
151
163
const props = getSignalLayerProps ( context , symbol ) ;
@@ -212,6 +224,15 @@ function getPSLSignsLayers(context: LayerContext, prefix: string): LayerProps[]
212
224
id : `${ prefix } geo/psl-signs-mast` ,
213
225
minzoom : POINT_ENTITIES_MIN_ZOOM ,
214
226
} ,
227
+ {
228
+ ...configKPLabelLayer ( {
229
+ colors : context . colors ,
230
+ minzoom : 9.5 ,
231
+ isSignalisation : true ,
232
+ sourceLayer : 'psl_signs' ,
233
+ } ) ,
234
+ id : `${ prefix } geo/psl-signs-kp` ,
235
+ } ,
215
236
] ;
216
237
}
217
238
0 commit comments