* @private * @function WebMap.prototype.createVisibleResolution * @description 图层边界范围 * @param {Array} indexbounds * @param {Object} bounds 图层上下左右范围 * @returns {Object} envelope
(indexbounds, bounds)
| 5240 | * @returns {Object} envelope |
| 5241 | */ |
| 5242 | getEnvelope(indexbounds, bounds) { |
| 5243 | let envelope = {}; |
| 5244 | if (indexbounds && indexbounds.length === 4) { |
| 5245 | envelope.left = indexbounds[0]; |
| 5246 | envelope.bottom = indexbounds[1]; |
| 5247 | envelope.right = indexbounds[2]; |
| 5248 | envelope.top = indexbounds[3]; |
| 5249 | } else { |
| 5250 | envelope = bounds; |
| 5251 | } |
| 5252 | return envelope; |
| 5253 | } |
| 5254 | /** |
| 5255 | * @private |
| 5256 | * @function WebMap.prototype.createMVTLayer |
no outgoing calls
no test coverage detected