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

Method extent

modules/core/MapSystem.js:859–865  ·  view source on GitHub ↗

* extent * Set/Get the map extent * @param extent? Extent Object to fit the map to * @return map extent -or- this

(extent)

Source from the content-addressed store, hash-verified

857 * @return map extent -or- this
858 */
859 extent(extent) {
860 if (extent === undefined) {
861 return this.context.viewport.visibleExtent();
862 } else {
863 return this.setMapParams(extent.center(), this.extentZoom(extent));
864 }
865 }
866
867
868 /**

Callers 15

relation.jsFile · 0.45
entity.jsFile · 0.45
matchMethod · 0.45
fitEntitiesMethod · 0.45
gotEntityMethod · 0.45
filterMethod · 0.45
cacheIssueMethod · 0.45
_doPasteMethod · 0.45
constructorMethod · 0.45
startAsyncMethod · 0.45

Calls 3

setMapParamsMethod · 0.95
extentZoomMethod · 0.95
centerMethod · 0.80

Tested by

no test coverage detected