GitHub user silviam-97 created a discussion: OSM tiles not available in
Superset Mapbox charts
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,
}
GitHub link: https://github.com/apache/superset/discussions/37663
----
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]