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

Method createXYZSource

src/openlayers/mapping/WebMap.js:1392–1399  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.createXYZSource * @description 创建图层的XYZsource。 * @param {Object} layerInfo - 图层信息 * @returns {ol.source.XYZ} xyz的source

(layerInfo)

Source from the content-addressed store, hash-verified

1390 * @returns {ol.source.XYZ} xyz的source
1391 */
1392 createXYZSource(layerInfo) {
1393 return new XYZ({
1394 url: layerInfo.url,
1395 wrapX: false,
1396 crossOrigin: 'anonymous',
1397 tileLoadFunction: this.getCustomTileLoadFunction()
1398 });
1399 }
1400
1401 getLayerOtherOptions(layerInfo) {
1402 const { layerType, extent, minZoom, maxZoom } = layerInfo;

Callers 1

createBaseLayerMethod · 0.95

Calls 1

Tested by

no test coverage detected