MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / setPitch

Method setPitch

src/common/mapping/WebMapBase.js:248–255  ·  view source on GitHub ↗

* @function WebMapBase.prototype.setPitch * @description 更新地图倾角。 * @param {number} pitch - 地图倾角。

(pitch)

Source from the content-addressed store, hash-verified

246 * @param {number} pitch - 地图倾角。
247 */
248 setPitch(pitch) {
249 if (this.map) {
250 this.mapOptions.pitch = pitch;
251 if (pitch !== +this.map.getPitch().toFixed(2)) {
252 (pitch || pitch === 0) && this.map.setPitch(pitch);
253 }
254 }
255 }
256
257 /**
258 * @function WebMapBase.prototype.setStyle

Callers 4

setMapOptionsMethod · 0.95
WebMapV2Spec.jsFile · 0.80
WebMapV2Spec.jsFile · 0.80
mapbox-gl.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected