mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(deckgl): add support for OpenStreetMap as our new default and make "tile-providers" more configurable (#33603)
Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
This commit is contained in:
@@ -194,7 +194,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
"datasource": "5__table",
|
||||
"granularity_sqla": None,
|
||||
"groupby": [],
|
||||
"mapbox_style": "mapbox://styles/mapbox/light-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"multiplier": 10,
|
||||
"point_radius_fixed": {"type": "metric", "value": "count"},
|
||||
"point_unit": "square_m",
|
||||
@@ -229,7 +229,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
"point_unit": "square_m",
|
||||
"row_limit": 5000,
|
||||
"spatial": {"type": "latlong", "lonCol": "LON", "latCol": "LAT"},
|
||||
"mapbox_style": "mapbox://styles/mapbox/dark-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"granularity_sqla": None,
|
||||
"size": "count",
|
||||
"viz_type": "deck_screengrid",
|
||||
@@ -263,7 +263,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
slice_data = {
|
||||
"spatial": {"type": "latlong", "lonCol": "LON", "latCol": "LAT"},
|
||||
"row_limit": 5000,
|
||||
"mapbox_style": "mapbox://styles/mapbox/streets-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"granularity_sqla": None,
|
||||
"size": "count",
|
||||
"viz_type": "deck_hex",
|
||||
@@ -300,7 +300,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
"autozoom": False,
|
||||
"spatial": {"type": "latlong", "lonCol": "LON", "latCol": "LAT"},
|
||||
"row_limit": 5000,
|
||||
"mapbox_style": "mapbox://styles/mapbox/satellite-streets-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"granularity_sqla": None,
|
||||
"size": "count",
|
||||
"viz_type": "deck_grid",
|
||||
@@ -367,7 +367,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
},
|
||||
"line_type": "json",
|
||||
"linear_color_scheme": "oranges",
|
||||
"mapbox_style": "mapbox://styles/mapbox/light-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"viewport": {
|
||||
"longitude": -122.43388541747726,
|
||||
"latitude": 37.752020331384834,
|
||||
@@ -442,7 +442,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
"lonCol": "LONGITUDE_DEST",
|
||||
},
|
||||
"row_limit": 5000,
|
||||
"mapbox_style": "mapbox://styles/mapbox/light-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"viewport": {
|
||||
"altitude": 1.5,
|
||||
"bearing": 8.546256357301871,
|
||||
@@ -486,7 +486,7 @@ def load_deck_dash() -> None: # pylint: disable=too-many-statements
|
||||
"line_column": "path_json",
|
||||
"line_type": "json",
|
||||
"row_limit": 5000,
|
||||
"mapbox_style": "mapbox://styles/mapbox/light-v9",
|
||||
"mapbox_style": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
"viewport": {
|
||||
"longitude": -122.18885402582598,
|
||||
"latitude": 37.73671752604488,
|
||||
|
||||
Reference in New Issue
Block a user