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

Method setMaxBounds

src/common/mapping/WebMapBase.js:299–304  ·  view source on GitHub ↗

* @function WebMapBase.prototype.setMaxBounds * @description 更新地图 maxbounds。 * @param {number} maxBounds - 地图最大缩放范围。

(maxBounds)

Source from the content-addressed store, hash-verified

297 * @param {number} maxBounds - 地图最大缩放范围。
298 */
299 setMaxBounds(maxBounds) {
300 if (this.map) {
301 this.mapOptions.maxBounds = maxBounds;
302 maxBounds && this.map.setMaxBounds(maxBounds);
303 }
304 }
305
306 /**
307 * @version 11.2.1

Callers 7

setMapOptionsMethod · 0.95
ToFunction · 0.45
rFunction · 0.45
mapbox-gl.jsFile · 0.45
leaflet.jsFile · 0.45
leaflet-src.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected