Repository navigation
OSM tiles not available in Superset Mapbox charts #37663
Unanswered
silviam-97
asked this question in
Q&A / Help
Replies: 2 comments 1 reply
|
It's not possible to use OSM tiles as a basemap in Mapbox charts in Superset. OSM and other custom tile providers are only supported in Deck.gl charts via the To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
0 replies
|
Okay, so how can I display numbers on the map in a Deck.gl Scatterplot like in Mapbox? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
OSM basemaps can be selected in Deck.gl charts via DECKGL_BASE_MAP, but in Mapbox charts, the dropdown only shows official Mapbox styles (e.g., Streets, Light, Satellite) and ignores any OSM configuration. How can I make OSM appear in chart Mapbox? Is it possible to do this?
I used this configuration:
DECKGL_BASE_MAP = [
['https://tile.openstreetmap.org/{z}/{x}/{y}.png', 'Streets (OSM)'],
['https://tile.osm.ch/osm-swiss-style/{z}/{x}/{y}.png', 'Topography (OSM)'],
# eventuali altre mappe
]
ENABLE_CORS = True
CORS_OPTIONS = {
"origins": [
"https://tile.openstreetmap.org",
]
}
TALISMAN_ENABLED = True
TALISMAN_CONFIG = {
"content_security_policy": {
"base-uri": ["'self'"],
"default-src": ["'self'"],
"img-src": [
"'self'",
"blob:",
"data:",
"https://apachesuperset.gateway.scarf.sh",
"https://static.scarf.sh/",
# "https://cdn.brandfolder.io", # se usi avatar Slack
"ows.terrestris.de",
"aws.s3.com", # es. bucket S3 o altra sorgente esterna
],
"worker-src": ["'self'", "blob:"],
"connect-src": [
"'self'",
"https://api.mapbox.com",
"https://events.mapbox.com",
"https://tile.openstreetmap.org", # OSM tiles
# aggiungi qui eventuali altri tile server
],
"object-src": "'none'",
"style-src": [
"'self'",
"'unsafe-inline'",
],
"script-src": ["'self'", "'strict-dynamic'"],
},
"content_security_policy_nonce_in": ["script-src"],
"force_https": False,
"session_cookie_secure": False,
}
All reactions