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