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

Method toArray

src/common/commontypes/Bounds.js:126–132  ·  view source on GitHub ↗

* @function Bounds.prototype.toArray * @description 边界对象的数组表示形式。 * @example * var bounds = new Bounds(-180,-90,100,80); * //array1 = [-180,-90,100,80]; * var array1 = bounds.toArray(); * //array1 = [-90,-180,80,100]; * var array2 = bounds.toArray(true); * @par

(reverseAxisOrder)

Source from the content-addressed store, hash-verified

124 * @returns {Array.<number>} left, bottom, right, top 数组。
125 */
126 toArray(reverseAxisOrder) {
127 if (reverseAxisOrder === true) {
128 return [this.bottom, this.left, this.top, this.right];
129 } else {
130 return [this.left, this.bottom, this.right, this.top];
131 }
132 }
133
134 /**
135 * @function Bounds.prototype.toBBOX

Callers 12

InitMapSpec.jsFile · 0.45
BoundsSpec.jsFile · 0.45
ColorSpec.jsFile · 0.45
onAddMethod · 0.45
_updateFeaturesMethod · 0.45
jquery.jsFile · 0.45
onAddMethod · 0.45
_updateFeaturesMethod · 0.45
mapbox-gl.jsFile · 0.45
mapv.min.jsFile · 0.45
mapv.jsFile · 0.45
ol.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected