MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / _createWebMapFactory

Method _createWebMapFactory

src/mapboxgl/mapping/WebMap.js:111–141  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 7

L7LayerUtilFunction · 0.90
createMapStyleExtendingFunction · 0.90
createMapClassExtendingFunction · 0.90
createWebMapV3ExtendingFunction · 0.90
createWebMapV2ExtendingFunction · 0.90
getProj4Method · 0.45

Tested by

no test coverage detected