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

Nothing works #29

Closed
VladimirKalachikhin opened this issue Oct 25, 2019 · 2 comments
Closed

Nothing works #29

VladimirKalachikhin opened this issue Oct 25, 2019 · 2 comments
Labels

Comments

@VladimirKalachikhin
Copy link

Is there anyone who was able to run this? Last error:

stager@StagerServer:~/tilestrata/example$ node index.js 
/home/stager/node_modules/tilestrata/lib/TileRequestHandler.js:39
	if (this.provider) throw new Error('There is a provider already registered to this layer');
	                   ^

Error: There is a provider already registered to this layer

I broke down...

@brianreavis
Copy link
Member

This error means there's a problem with your configuration (attempting to use two providers on a single layer). If you want more specific help, you'll need to post your layer configuration.

strata.layer('basemap')
    .route('tile.png')
        .use(mapnik({ ... }))
        .use(mapnik({ ... })) // will trigger that error

@brianreavis
Copy link
Member

Just noticed you were referencing the example that I forgot existed in the repository. The problem there was there was a small typo:

0eacf8c#diff-f8c408fd257ff44ce4b01e5f8422b1e1R15

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

No branches or pull requests

2 participants