* @private * @function WebMap.prototype.createXYZSource * @description 创建图层的XYZsource。 * @param {Object} layerInfo - 图层信息 * @returns {ol.source.XYZ} xyz的source
(layerInfo)
| 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; |
no test coverage detected