* 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]')
| 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 | /** |
no test coverage detected