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

Method centerLoc

modules/core/MapSystem.js:492–494  ·  view source on GitHub ↗

* centerLoc * Returns the current [lon,lat] location at the center of the viewport * @return Array [lon,lat] location at the center of the viewport

()

Source from the content-addressed store, hash-verified

490 * @return Array [lon,lat] location at the center of the viewport
491 */
492 centerLoc() {
493 return this.context.viewport.centerLoc();
494 }
495
496
497 /**

Callers 15

centerMethod · 0.95
updateViewportMethod · 0.80
_map3dmovedMethod · 0.80
_updateHashMethod · 0.80
setMapParamsMethod · 0.80
setMapParamsAsyncMethod · 0.80
effectiveZoomMethod · 0.80
localReleaseDatesMethod · 0.80
_zoomedMethod · 0.80
_zoomEndedMethod · 0.80
_updateTransformMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected