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

TopoJson, TypeError: Cannot read properties of undefined (reading 'toString') #438

Open
lorem-ipsum-dolor-sit opened this issue Aug 27, 2024 · 3 comments

Comments

@lorem-ipsum-dolor-sit
Copy link

lorem-ipsum-dolor-sit commented Aug 27, 2024

When I try to import a different TopoJSON from @unovis/ts/maps, e.g. GermanyTopoJSON instead of WorldMapTopoJSON into the component VisTopoJSONMap. Which is just the simple example from https://unovis.dev/docs/maps/TopoJSONMap, I get the error undefined, but the data exists according to console.log.

TypeError: Cannot read properties of undefined (reading 'toString') @unovis_vue.js

Example: https://stackblitz.com/edit/nuxt-starter-vtxxnk?file=app.vue

I would say that there is no difference between GermanyTopoJSON and WorldMapTopoJSON.

@lorem-ipsum-dolor-sit
Copy link
Author

lorem-ipsum-dolor-sit commented Sep 6, 2024

Any updates/ideas?

@rokotyan
Copy link
Contributor

rokotyan commented Sep 9, 2024

@lorem-ipsum-dolor-sit Try setting mapFeatureName to "regions". See more here.

image

@reb-dev @zernonia @lee00678 Is there an error in our Vue code snippets? It looks like the variables have to prefixed with a colon, e.g. it should be :topojson="FranceTopoJSON".

@lorem-ipsum-dolor-sit
Copy link
Author

Ohh, thanks, I totally overlooked that. Sorry about that!

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