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

Method _createWebMapFactory

src/maplibregl/mapping/WebMap.js:110–140  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

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}

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