(type)
| 108 | } |
| 109 | |
| 110 | _createWebMapFactory(type) { |
| 111 | const commonFactoryOptions = { |
| 112 | MapManager, |
| 113 | mapRepo: maplibregl, |
| 114 | crsManager: this._crsManager, |
| 115 | DataFlowService, |
| 116 | GraticuleLayer |
| 117 | }; |
| 118 | const l7LayerUtil = L7LayerUtil({ |
| 119 | featureFilter, |
| 120 | expression, |
| 121 | spec, |
| 122 | L7Layer, |
| 123 | L7, |
| 124 | proj4: this._crsManager.getProj4() |
| 125 | }); |
| 126 | switch (type) { |
| 127 | case 'MapStyle': |
| 128 | return createMapStyleExtending(createMapClassExtending(maplibregl.Evented), commonFactoryOptions); |
| 129 | case 'WebMap3': |
| 130 | return createWebMapV3Extending(createMapClassExtending(maplibregl.Evented), { |
| 131 | ...commonFactoryOptions, |
| 132 | l7LayerUtil |
| 133 | }); |
| 134 | default: |
| 135 | return createWebMapV2Extending( |
| 136 | createWebMapV2BaseExtending(createMapClassExtending(maplibregl.Evented), 'fire'), |
| 137 | commonFactoryOptions |
| 138 | ); |
| 139 | } |
| 140 | } |
| 141 | } |
nothing calls this directly
no test coverage detected