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

Method setZoom

src/common/mapping/WebMapBase.js:552–559  ·  view source on GitHub ↗
(zoom)

Source from the content-addressed store, hash-verified

550 }
551
552 setZoom(zoom) {
553 if (this.map) {
554 this.mapOptions.zoom = zoom;
555 if (zoom !== +this.map.getZoom().toFixed(2)) {
556 (zoom || zoom === 0) && this.map.setZoom(zoom, { from: 'setZoom' });
557 }
558 }
559 }
560
561 setServerUrl(serverUrl) {
562 this._setServer(serverUrl);

Callers 2

setMapOptionsMethod · 0.95
resizeMethod · 0.45

Calls 1

getZoomMethod · 0.45

Tested by

no test coverage detected