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

Vector Tiles Example component error #6

Closed
santiagotsp opened this issue Jul 14, 2021 · 2 comments
Closed

Vector Tiles Example component error #6

santiagotsp opened this issue Jul 14, 2021 · 2 comments

Comments

@santiagotsp
Copy link

tsconfig.json -> strict: false

Generic type 'Feature' requires 1 type argument(s). TS2314

43 |             <RStyle
44 |                 ref={styles.towns}

45 | render={useCallback((feature: Feature) => {
| ^
46 | /* This is a the towns style
47 | *
48 | * This is a dynamic style that creates a new object

@mmomtchev
Copy link
Owner

If you are using the very recent OpenLayers 6.6.0 release, you should know that the project switched to native TS declarations that are not compatible with previous TS projects
Their release page has instructions on how to make it work:
https://github.com/openlayers/openlayers/releases/

@mmomtchev
Copy link
Owner

1.1.0 has OpenLayers >= 6.6 support in TypeScript mode

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

2 participants