From 5b6e2b54480cdb205a6de47c4a00c3fc024a0326 Mon Sep 17 00:00:00 2001 From: Felix Palmer Date: Fri, 20 Sep 2024 13:33:55 +0200 Subject: [PATCH 1/2] chore: Fix collision test app --- test/apps/collision/app.jsx | 6 +++--- test/apps/collision/package.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/apps/collision/app.jsx b/test/apps/collision/app.jsx index 01d00003be1..c280b105c5d 100644 --- a/test/apps/collision/app.jsx +++ b/test/apps/collision/app.jsx @@ -8,7 +8,7 @@ import {GeoJsonLayer, SolidPolygonLayer, TextLayer} from '@deck.gl/layers'; import {CollisionFilterExtension, MaskExtension} from '@deck.gl/extensions'; import {VectorTileLayer, vectorTableSource} from '@deck.gl/carto'; -const accessToken = 'XXX'; +const accessToken = 'eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfbHFlM3p3Z3UiLCJqdGkiOiJkOTU4OWMyZiJ9.78MdzU2J6y-J6Far71_Mh7IQO9eYIZD9nECUiZJAVL4'; const MAP_STYLE = 'https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json'; const AIR_PORTS = 'https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_10m_airports.geojson'; @@ -19,8 +19,8 @@ const US_STATES = const cartoData = vectorTableSource({ accessToken, - connectionName: 'bigquery', - tableName: 'cartobq.public_account.populated_places' + connectionName: 'carto_dw', + tableName: 'carto-demo-data.demo_tables.populated_places' }); /* eslint-disable react/no-deprecated */ diff --git a/test/apps/collision/package.json b/test/apps/collision/package.json index 493d558bc3a..4c57eddb561 100644 --- a/test/apps/collision/package.json +++ b/test/apps/collision/package.json @@ -8,6 +8,7 @@ }, "dependencies": { "deck.gl": "^8.6.0-alpha.0", + "maplibre-gl": "^3.0.0", "react": "^16.3.0", "react-dom": "^16.3.0", "react-map-gl": "^7.1.0" From 02fa19d43fe77ad28de098b25d69905a850ac89b Mon Sep 17 00:00:00 2001 From: Felix Palmer Date: Fri, 20 Sep 2024 14:23:27 +0200 Subject: [PATCH 2/2] Lint --- test/apps/collision/app.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/apps/collision/app.jsx b/test/apps/collision/app.jsx index c280b105c5d..6a63f9ecdb2 100644 --- a/test/apps/collision/app.jsx +++ b/test/apps/collision/app.jsx @@ -8,7 +8,8 @@ import {GeoJsonLayer, SolidPolygonLayer, TextLayer} from '@deck.gl/layers'; import {CollisionFilterExtension, MaskExtension} from '@deck.gl/extensions'; import {VectorTileLayer, vectorTableSource} from '@deck.gl/carto'; -const accessToken = 'eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfbHFlM3p3Z3UiLCJqdGkiOiJkOTU4OWMyZiJ9.78MdzU2J6y-J6Far71_Mh7IQO9eYIZD9nECUiZJAVL4'; +const accessToken = + 'eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfbHFlM3p3Z3UiLCJqdGkiOiJkOTU4OWMyZiJ9.78MdzU2J6y-J6Far71_Mh7IQO9eYIZD9nECUiZJAVL4'; const MAP_STYLE = 'https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json'; const AIR_PORTS = 'https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_10m_airports.geojson';