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

Method getEnvelope

src/openlayers/mapping/WebMap.js:5242–5253  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.createVisibleResolution * @description 图层边界范围 * @param {Array} indexbounds * @param {Object} bounds 图层上下左右范围 * @returns {Object} envelope

(indexbounds, bounds)

Source from the content-addressed store, hash-verified

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

Callers 2

createMVTLayerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected