MCPcopy Create free account
hub / github.com/facebook/Rapid / zoom

Method zoom

modules/core/MapSystem.js:672–678  ·  view source on GitHub ↗

* zoom * Set/Get the map zoom * @param z2? Number to set the zoom to * @param duration? Duration of the transition in milliseconds, defaults to 0ms (asap) * @return map zoom -or- this

(z2, duration)

Source from the content-addressed store, hash-verified

670 * @return map zoom -or- this
671 */
672 zoom(z2, duration) {
673 if (z2 === undefined) {
674 return this.context.viewport.transform.zoom;
675 } else {
676 return this.setMapParams(undefined, z2, undefined, duration ?? 0);
677 }
678 }
679
680
681 /**

Callers 11

_zoomInMethod · 0.95
_zoomOutMethod · 0.95
canZoomInMethod · 0.95
canZoomOutMethod · 0.95
_pointermoveMethod · 0.80
_pinchMoveMethod · 0.80
_updatePinchStateMethod · 0.80
rightClickHouseAsyncFunction · 0.80
renderDisclosureContentFunction · 0.80
MapSystem.Test.jsFile · 0.80

Calls 1

setMapParamsMethod · 0.95

Tested by

no test coverage detected