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

Method setMapOptions

src/common/mapping/WebMapBase.js:349–359  ·  view source on GitHub ↗

* @deprecated * @function WebMapBase.prototype.setMapOptions * @param {Object} mapOptions - map 参数。 * @description 设置 map 参数。

(mapOptions)

Source from the content-addressed store, hash-verified

347 * @description 设置 map 参数。
348 */
349 setMapOptions(mapOptions) {
350 let { center, zoom, maxBounds, minZoom, maxZoom, isWorldCopy, bearing, pitch } = mapOptions;
351 center && center.length && this.setCenter(center);
352 zoom && this.setZoom(zoom);
353 maxBounds && this.setMaxBounds(maxBounds);
354 minZoom && this.setMinZoom(minZoom);
355 maxZoom && this.setMaxZoom(maxZoom);
356 isWorldCopy && this.setRenderWorldCopies(isWorldCopy);
357 bearing && this.setBearing(bearing);
358 pitch && this.setPitch(pitch);
359 }
360
361 /**
362 * @version 12.0.2

Callers 2

WebMapSpec.jsFile · 0.80
WebMapSpec.jsFile · 0.80

Calls 8

setCenterMethod · 0.95
setZoomMethod · 0.95
setMaxBoundsMethod · 0.95
setMinZoomMethod · 0.95
setMaxZoomMethod · 0.95
setRenderWorldCopiesMethod · 0.95
setBearingMethod · 0.95
setPitchMethod · 0.95

Tested by

no test coverage detected