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

Method feature

modules/core/LocationSystem.js:339–344  ·  view source on GitHub ↗

* feature * Returns the resolved GeoJSON feature for a given locationSetID (fallback to 'world') * A GeoJSON feature: * { * type: 'Feature', * id: '+[Q30]', * properties: { id: '+[Q30]', area: 21817019.17, … }, * geometry: { … } * } * * @param `locationSetID`

(locationSetID = '+[Q2]')

Source from the content-addressed store, hash-verified

337 * @return GeoJSON object (fallback to world)
338 */
339 feature(locationSetID = '+[Q2]') {
340 // should we actually resolve it if it hasn't been?
341 // this shouldn't matter, as it's currently only used to render the blocked regions
342 const feature = this._resolved.get(locationSetID);
343 return feature || this._resolved.get('+[Q2]');
344 }
345
346
347 /**

Callers 5

_parseTileBufferMethod · 0.80
_processTileMethod · 0.80
_cacheSegmentationMethod · 0.80
renderEditBlocksMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected