How to create a custom map using Viz plugin #36591
Replies: 1 comment 6 replies
-
|
Hi @lucamuroni2000! I'm Dosu and I’m helping the superset team. To make your custom map viz plugin work with Mapbox in Superset, follow the same pattern as the built-in map visualizations:
If you need to expose the key outside of the viz payload (rare), you can extend the frontend bootstrap data by adding keys to Let me know if you want a concrete code example for your plugin! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I need help creating a custom plugin with a map that can be customised. I followed the tutorial in the official documentation using Yeoman to generate the plugin, and then I tested it to make sure everything was working. Initially, I had to solve a series of problems in an attempt to incorporate the plugin into the superset image I am building, mainly due to the fact that I do not have a custom Dockerfile, but I use the Dockerfile already present in the superset repository (specifically branch 6.0.0). but after solving them, I reached the point where I don't understand how to get the Mapbox API key from the backend to then render the chart map.
As you can see from the image, Mapbox rightly requires the API key, but I don't know how to pass it from the code.
I tried looking at the code for the maps already in Superset, such as Heatmap or Scatterplot, but I couldn't figure out where the API key set in the backend came from.
Beta Was this translation helpful? Give feedback.
All reactions