GitHub user dosubot[bot] added a comment to the discussion: Can I make superset use vietmap ?
<!-- Answer --> Superset does not support Vietmap or other custom tile providers for deck.gl charts out-of-the-box. The frontend currently enforces Mapbox URLs through a validator, so simply entering a Vietmap URL will not work. To enable Vietmap, you need to patch the frontend code: 1. Update the validator in `superset-frontend/packages/superset-ui-core/src/validator/validateMapboxStylesUrl.ts` to accept Vietmap URLs (or remove the strict Mapbox check). 2. In the map chart control panel (see `superset-frontend/plugins/legacy-plugin-chart-map-box/src/controlPanel.ts`), ensure the map style control allows your Vietmap URL and uses your updated validator. 3. If Vietmap requires authentication or API keys, you may need to handle those in your tile URL or via headers, depending on Vietmap's requirements. 4. Make sure your Superset server and browser security policies (CORS and Content Security Policy) allow requests to Vietmap's tile servers. Update `CORS_OPTIONS` and `TALISMAN_CONFIG` in your Superset config as needed. You do not need to rewrite all frontend code—just the validator and map style controls that enforce Mapbox-only URLs need to be changed. For more details, see the relevant code and validator logic [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-core/src/validator/validateMapboxStylesUrl.ts#L26-L36) and [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-plugin-chart-map-box/src/controlPanel.ts#L19-L233). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/fb647e7a-6a4c-4184-8035-b59aa459ea17?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36080) GitHub link: https://github.com/apache/superset/discussions/36080#discussioncomment-14953593 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
