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

Method blocksAt

modules/core/LocationSystem.js:413–416  ·  view source on GitHub ↗

* blocksAt * Returns any blocks that exist for the given location * * @param `loc` `[lon,lat]` location to query, e.g. `[-74.4813, 40.7967]` * @return Array of block Objects (empty array if none)

(loc)

Source from the content-addressed store, hash-verified

411 * @return Array of block Objects (empty array if none)
412 */
413 blocksAt(loc) {
414 if (!this._blocks.length) return [];
415 return this._wpblocks(loc, true) || [];
416 }
417
418
419 // Direct access to the location-conflation resolver

Callers 15

_lassoedMethod · 0.80
loadTilesMethod · 0.80
loadTileMethod · 0.80
loadNotesMethod · 0.80
_clickMethod · 0.80
_nudgeMethod · 0.80
_clickMethod · 0.80
_nudgeMethod · 0.80
_clickMethod · 0.80
_moveMethod · 0.80
_nudgeMethod · 0.80
enterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected