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

Method getCenterLonLat

src/common/commontypes/Bounds.js:245–252  ·  view source on GitHub ↗

* @function Bounds.prototype.getCenterLonLat * @description 获取地理格式的范围中心点。 * @example * var bounds = new Bounds(-180,-90,100,80); * var lonlat = bounds.getCenterLonLat(); * @returns {LonLat} 当前地理范围的中心点。

()

Source from the content-addressed store, hash-verified

243 * @returns {LonLat} 当前地理范围的中心点。
244 */
245 getCenterLonLat() {
246 if (!this.centerLonLat) {
247 this.centerLonLat = new LonLat(
248 (this.left + this.right) / 2, (this.bottom + this.top) / 2
249 );
250 }
251 return this.centerLonLat;
252 }
253
254 /**
255 * @function Bounds.prototype.scale

Callers 7

getDrawnLabelsMethod · 0.95
scaleMethod · 0.95
determineQuadrantMethod · 0.95
getDrawnLabelsMethod · 0.95
LabelThemeLayer.jsFile · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected