* Return an unwrapped version of a `[lon0, lon1]` longitude range. * When the range crosses the antimeridian (`lon0 > 0`, `lon1 < 0`), * 360 is added to `lon1` to produce a continuous range; * otherwise the input pair is returned unchanged. Function assumes * `lon0` is west of `lon1`. * * @exa
([lon0, lon1])
| 460 | * respected, `lon1` falls in the range `[lon0, lon0 + 360)`. |
| 461 | */ |
| 462 | function unwrapLonRange([lon0, lon1]) { |
| 463 | return [lon0, lon0 > 0 && lon1 < 0 ? lon1 + ANTIMERIDIAN_LON_SHIFT : lon1]; |
| 464 | } |
| 465 | |
| 466 | module.exports = { |
| 467 | locationToFeature, |
no outgoing calls
no test coverage detected
searching dependent graphs…