f5 / unovis

Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript
https://unovis.dev
Apache License 2.0
2.16k stars 43 forks source link

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

Open lorem-ipsum-dolor-sit opened 3 weeks ago

lorem-ipsum-dolor-sit commented 3 weeks ago

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 commented 2 weeks ago

Any updates/ideas?

rokotyan commented 1 week ago

@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 commented 1 week ago

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