Kanahiro / chiitiler

Lightweight Raster Tile Server for MapLibre Style Specification
https://spatialty-io.github.io/chiitiler-demo
MIT License
54 stars 2 forks source link

better export modules as library #101

Closed Kanahiro closed 3 months ago

Kanahiro commented 3 months ago

to use chiitiler as library, following snipets are needed


import { initServer, cache } from 'chiitiler';

const { tiles } = initServer({
    cache: cache.s3Cache({
        bucket: 'bucketname',
        region: 'ap-northeast-1',
        endpoint: null,  // needed in special cases
    }),
    port: 3000, // unused
    debug: false, // unused
});

initServer has been called only by CLI but now called as library. As library, the signature looks somewhat awkward.