File tree Expand file tree Collapse file tree 3 files changed +5
-24
lines changed
Expand file tree Collapse file tree 3 files changed +5
-24
lines changed Original file line number Diff line number Diff line change 11import Pbf from 'pbf' ;
22import { type GeoJSONOptions , type Feature , GeoJSONWrapper } from './lib/geojson_wrapper' ;
33import geojsonvt from 'geojson-vt' ;
4- import type Point from '@mapbox/point-geometry ' ;
4+ import { VectorTileFeatureLike , VectorTileLike , VectorTileLayerLike } from './lib/types ' ;
55
66interface Context {
77 keys : string [ ] ;
@@ -11,26 +11,6 @@ interface Context {
1111 feature ?: VectorTileFeatureLike ;
1212}
1313
14- export interface VectorTileFeatureLike {
15- type : 0 | 1 | 2 | 3 ;
16- properties : Record < string , number | string | boolean > ;
17- id : number | undefined ;
18- extent : number ;
19- loadGeometry ( ) : Point [ ] [ ] ;
20- }
21-
22- export interface VectorTileLayerLike {
23- version : number ;
24- name : string ;
25- extent : number ;
26- length : number ;
27- feature ( i : number ) : VectorTileFeatureLike ;
28- }
29-
30- export interface VectorTileLike {
31- layers : Record < string , VectorTileLayerLike > ;
32- }
33-
3414/**
3515 * Serialize a vector-tile-js-created tile to pbf
3616 *
Original file line number Diff line number Diff line change 11import Point from '@mapbox/point-geometry' ;
22import type { TileFeature , AnyProps } from 'supercluster' ;
33import { type Feature as GeoJSONVTFeature , Geometry } from 'geojson-vt' ;
4- import type { VectorTileFeatureLike , VectorTileLayerLike } from '../index ' ;
4+ import type { VectorTileFeatureLike , VectorTileLayerLike } from './types ' ;
55
66export type Feature = TileFeature < AnyProps , AnyProps > | GeoJSONVTFeature ;
77
Original file line number Diff line number Diff line change 1515 "files" : [
1616 " index.ts" ,
1717 " lib/geojson_wrapper.ts" ,
18- " rollup.config.ts"
18+ " rollup.config.ts" ,
19+ " lib/types.ts"
1920 ]
20- }
21+ }
You can’t perform that action at this time.
0 commit comments