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

Method setMinZoom

src/common/mapping/WebMapBase.js:312–317  ·  view source on GitHub ↗

* @version 11.2.1 * @function WebMapBase.prototype.setMinZoom * @description 更新地图 minzoom。 * @param {number} minZoom - 地图最小缩放级别。

(minZoom)

Source from the content-addressed store, hash-verified

310 * @param {number} minZoom - 地图最小缩放级别。
311 */
312 setMinZoom(minZoom) {
313 if (this.map) {
314 this.mapOptions.minZoom = minZoom;
315 (minZoom || minZoom === 0) && this.map.setMinZoom(minZoom);
316 }
317 }
318
319 /**
320 * @version 11.2.1

Callers 7

setMapOptionsMethod · 0.95
WebMapSpec.jsFile · 0.45
WebMapSpec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected