import { DATASET_AWS_LOTL2 } from './dataset' ; import { AbstractLandsat8Layer } from './AbstractLandsat8Layer' ; import { Link , LinkType } from './const' ; export class Landsat8AWSLOTL2Layer extends AbstractLandsat8Layer { public readonly dataset = DATASET_AWS_LOTL2 ; protected getTileLinks ( tile ) { return [ { target : tile . dataUri , type : LinkType . AWS , } , ] ; } protected getTileLinksFromCatalog ( feature ) { const { assets } = feature ; let result = [ ] ; if ( assets && assets . data ) { result . push ( { target : assets . data . href , type : LinkType . AWS } ) ; } return result ; } }