Hey guys, we are using geo charts, and it works in...
# gooddata-ui
g
Hey guys, we are using geo charts, and it works in GoodData.CN but when we try to embed them with InsightView component, it says the API key is not valid, are we supposed to use the provider for the token?
f
Hi Gonçalo, as you suspected, it looks like your GeoChart component is missing the
mapboxToken
, which is necessary for embedding the visualization. Please take a look at this article for some more details about the component and where to add the token. You can also refer to this guide from Mapbox for instructions on acquiring the token.
g
yeah... but shouldnt that token be passed on from the backend to the component?
because as I said, in the GoodData UI we have no problem, we had to add the token there and the CSP directives, my thoughts are that since the info is already in the backend, it should just move from there to the client. So we have to manually add the token in the embedding application too?
f
That’s right, you also need to manually add the token on the component.
g
alright, thank you!
👍 1