Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with use for rebuilding tiles #7

Open
carrbrpoa opened this issue Oct 11, 2017 · 0 comments
Open

Help with use for rebuilding tiles #7

carrbrpoa opened this issue Oct 11, 2017 · 0 comments

Comments

@carrbrpoa
Copy link

Hello,
I am managing to get the list of tiles from tilemantle, but when I run the command in tilestrata server with -H (which I was expecting to "auto refresh" the cache with new generated tiles), I see that it doesn't happen. The command:

tilemantle http://localhost:9999/basemap-custom-1/{z}/{x}/{y}/t.png -p ... -b 14km -z 10-21 -H "X-TileStrata-SkipCache:basemap-custom-1/t.png" (ommited some stuff for simplicity).

My tilestrata is configured like this:

var tilestrata = require('tilestrata');
var disk = require('tilestrata-disk');
var sharp = require('tilestrata-sharp');
var mapnik = require('tilestrata-mapnik');
var dependency = require('tilestrata-dependency');
var strata = tilestrata();

// define layers
strata.layer('basemap')
    ...

strata.layer('basemap-custom-1')
    .route('*@2x.png')
        .use(disk.cache({dir: '/var/lib/tiles/basemap-custom-1'}))
        .use(mapnik({
            pathname: '/home/osboxes/dados_container_renderer_custom/stylesheet_custom.xml',
            tileSize: 512,
            scale: 2
        }))
    .route('*.png')
        .use(disk.cache({dir: '/var/lib/tiles/basemap-custom-1'}))
        .use(dependency('basemap-custom-1', '*@2x.png'))
        .use(sharp(function(image, sharp) {
            return image.resize(256);
        }));

// start accepting requests
strata.listen(9999);

Did I miss something?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant