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

Method centerZoom

modules/core/MapSystem.js:820–820  ·  view source on GitHub ↗
(loc2, z2, duration = 0)

Source from the content-addressed store, hash-verified

818 canZoomOut() { return this.zoom() > MIN_Z; }
819
820 centerZoom(loc2, z2, duration = 0) { return this.setMapParams(loc2, z2, undefined, duration); }
821
822 // convenience methods for the above, but with easing
823 transformEase(t2, duration = 250) { return this.transform(t2, duration); }

Callers 2

renderFunction · 0.80
MapSystem.Test.jsFile · 0.80

Calls 1

setMapParamsMethod · 0.95

Tested by

no test coverage detected