import { MapTileset } from '../../config/tileserver-config' ; param tileset param parameters returns export function getTileLayerUrl < T extends MapTileset = MapTileset > ( tileset , parameters ? ) { let paramString = parameters && new URLSearchParams ( parameters ) . toString ( ) ; paramString = paramString == undefined ? '' : `?${ paramString }` ; return `/tiles/${ tileset }/{z}/{x}/{y}{r}.png${ paramString }` ; }