-
Notifications
You must be signed in to change notification settings - Fork 42
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
TypeError: Cannot read property 'getTile' of undefined #26
Comments
Do you have a stacktrace you can post? |
|
Thanks! This is because the source hasn't been initialized yet. I should make This said, there a few problems with your approach your here:
If you're wanting to integrate with Express, check out the middleware. It should simplify what it seems you're intending: https://github.com/naturalatlas/tilestrata#integrate-with-expressjs--connect If you have a lot of layers you don't want to hard-code, I'd recommend setting them up before starting the server. Tilestrata doesn't support adding / removing of layers once listening. You can use tools like node-glob to find the XMLs, setting up a layer for each. |
@brandonreavis thanks for the advice I will try both approaches then. |
|
Hi, I'm trying to pass the layer name dynamically but when trying to run I'm getting an error "TypeError: Cannot read property 'getTile' of undefined".
The text was updated successfully, but these errors were encountered: