File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import area from '@turf/area';
9
9
import union from '@turf/union' ; // @turf /union is missing types definitions, we supply them separately
10
10
11
11
import { Polygon , MultiPolygon } from '@turf/helpers' ;
12
+ import { CRS_EPSG4326 } from 'src/crs' ;
12
13
13
14
export class AbstractLayer {
14
15
public title : string | null = null ;
@@ -60,6 +61,10 @@ export class AbstractLayer {
60
61
throw new Error ( 'Orbit time is needed for grouping tiles into flyovers.' ) ;
61
62
}
62
63
64
+ if ( bbox . crs !== CRS_EPSG4326 ) {
65
+ throw new Error ( 'Currently, only EPSG:4326 in findFlyovers' ) ;
66
+ }
67
+
63
68
let tiles : Tile [ ] = [ ] ;
64
69
for ( let i = 0 ; i < maxFindTilesRequests ; i ++ ) {
65
70
const { tiles : partialTiles , hasMore } = await this . findTiles (
You can’t perform that action at this time.
0 commit comments