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

Method center

modules/core/MapSystem.js:656–662  ·  view source on GitHub ↗

* center * Set/Get the map center * @param loc2? Array [lon,lat] to set the center to * @param duration? Duration of the transition in milliseconds, defaults to 0ms (asap) * @return map center -or- this

(loc2, duration)

Source from the content-addressed store, hash-verified

654 * @return map center -or- this
655 */
656 center(loc2, duration) {
657 if (loc2 === undefined) {
658 return this.centerLoc();
659 } else {
660 return this.setMapParams(loc2, undefined, undefined, duration ?? 0);
661 }
662 }
663
664
665 /**

Callers 15

matchMethod · 0.80
_map3dmovedMethod · 0.80
centerPointMethod · 0.80
setMapParamsMethod · 0.80
setMapParamsAsyncMethod · 0.80
fitEntitiesMethod · 0.80
extentMethod · 0.80
trimmedExtentMethod · 0.80
selectDetectionMethod · 0.80
_tformMethod · 0.80
_appMethod · 0.80

Calls 2

centerLocMethod · 0.95
setMapParamsMethod · 0.95

Tested by

no test coverage detected