File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type * as geojson from 'geojson'
22import { MAX_LEVEL } from '../s2/cellid_constants'
33import { CellUnion } from '../s2/CellUnion'
4- import * as geometry from './geometry'
4+ import { fromGeoJSON } from './geometry'
55import { Polyline } from '../s2/Polyline'
66import { Polygon } from '../s2/Polygon'
77import type { Region } from '../s2/Region'
@@ -99,8 +99,8 @@ export class RegionCoverer {
9999 }
100100
101101 /** Returns a CellUnion that covers the given GeoJSON geometry and satisfies the various restrictions. */
102- covering ( geom : geojson . Geometry ) : CellUnion {
103- const shape = geometry . fromGeoJSON ( geom )
102+ covering ( geometry : geojson . Geometry ) : CellUnion {
103+ const shape = fromGeoJSON ( geometry )
104104 if ( Array . isArray ( shape ) ) return this . mutliMemberCovering ( shape as Region [ ] )
105105 return this . coverer . covering ( shape )
106106 }
Original file line number Diff line number Diff line change 22 * Module geojson implements types and functions for working with GeoJSON.
33 * @module geojson
44 */
5- export type { Encodable , Decodable } from './geometry'
5+ export * as geojson from 'geojson'
6+
7+ export { Encodable , Decodable } from './geometry'
68export { toGeoJSON , fromGeoJSON } from './geometry'
79
8- export type { RegionCovererOptions } from './RegionCoverer'
10+ export { RegionCovererOptions } from './RegionCoverer'
911export { RegionCoverer } from './RegionCoverer'
You can’t perform that action at this time.
0 commit comments