From 023354dbb9eef77f7b739039f73398371f4a2b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Arroyo=20Torrens?= Date: Mon, 16 Nov 2020 13:53:35 +0100 Subject: [PATCH 01/56] Add CatalogDatasetMap component --- lib/assets/javascripts/do-catalog/router.js | 9 + .../pages/Data/CatalogDataset.vue | 1 + .../pages/Data/CatalogDatasetMap.vue | 126 ++++ .../new-dashboard/router/routes/data.js | 9 + package-lock.json | 579 ++++++++++++++++++ package.json | 6 + 6 files changed, 730 insertions(+) create mode 100644 lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue diff --git a/lib/assets/javascripts/do-catalog/router.js b/lib/assets/javascripts/do-catalog/router.js index 5f75a581210d..478906985f32 100644 --- a/lib/assets/javascripts/do-catalog/router.js +++ b/lib/assets/javascripts/do-catalog/router.js @@ -3,6 +3,7 @@ import Router from 'vue-router'; import Catalog from 'new-dashboard/pages/Data/Catalog.vue'; import CatalogDataset from 'new-dashboard/pages/Data/CatalogDataset.vue'; +import CatalogDatasetMap from 'new-dashboard/pages/Data/CatalogDatasetMap.vue'; import CatalogDatasetData from 'new-dashboard/pages/Data/CatalogDatasetData.vue'; import CatalogDatasetSummary from 'new-dashboard/pages/Data/CatalogDatasetSummary.vue'; @@ -29,6 +30,14 @@ const router = new Router({ title: () => 'Spatial Data Catalog | CARTO' }, children: [ + { + path: 'map', + name: 'catalog-dataset-map', + component: CatalogDatasetMap, + meta: { + title: () => 'Spatial Data Catalog | CARTO' + } + }, { path: 'data', name: 'catalog-dataset-data', diff --git a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDataset.vue b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDataset.vue index dd1307864dfb..edf0a53b3d17 100644 --- a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDataset.vue +++ b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDataset.vue @@ -62,6 +62,7 @@ Summary Data + Map diff --git a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue new file mode 100644 index 000000000000..d813d275ddde --- /dev/null +++ b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/lib/assets/javascripts/new-dashboard/router/routes/data.js b/lib/assets/javascripts/new-dashboard/router/routes/data.js index a8706b1ef1f0..ae589e1bde2a 100644 --- a/lib/assets/javascripts/new-dashboard/router/routes/data.js +++ b/lib/assets/javascripts/new-dashboard/router/routes/data.js @@ -8,6 +8,7 @@ const Datasets = () => import('new-dashboard/pages/Data/Datasets'); const Subscriptions = () => import('new-dashboard/pages/Data/Subscriptions'); const Catalog = () => import('new-dashboard/pages/Data/Catalog'); const CatalogDataset = () => import('new-dashboard/pages/Data/CatalogDataset'); +const CatalogDatasetMap = () => import('new-dashboard/pages/Data/CatalogDatasetMap'); const CatalogDatasetData = () => import('new-dashboard/pages/Data/CatalogDatasetData'); const CatalogDatasetSummary = () => import('new-dashboard/pages/Data/CatalogDatasetSummary'); @@ -46,6 +47,14 @@ const routes = [ title: () => 'Spatial Data Catalog | CARTO' }, children: [ + { + path: 'map', + name: 'catalog-dataset-data', + component: CatalogDatasetMap, + meta: { + title: () => 'Spatial Data Catalog | CARTO' + } + }, { path: 'data', name: 'catalog-dataset-data', diff --git a/package-lock.json b/package-lock.json index 8af7bd18de8b..86f384dbb39a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1601,6 +1601,69 @@ "minimist": "^1.2.0" } }, + "@deck.gl/carto": { + "version": "8.3.7", + "resolved": "https://registry.npmjs.org/@deck.gl/carto/-/carto-8.3.7.tgz", + "integrity": "sha512-prNT61z7ToYU9wvnHEpxbzBv1oxdCZrijogpnimulhD7fL7Mp01f9pFfoo2fhHwfFpdPCZrPTWncOM/dZNC/pA==", + "requires": { + "@loaders.gl/loader-utils": "^2.3.0", + "@loaders.gl/mvt": "^2.3.0", + "@loaders.gl/tiles": "^2.3.0", + "@math.gl/web-mercator": "^3.3.0" + } + }, + "@deck.gl/core": { + "version": "8.3.7", + "resolved": "https://registry.npmjs.org/@deck.gl/core/-/core-8.3.7.tgz", + "integrity": "sha512-SfQVk4z9aHxsj/+KZFj838xRgrKmh3x08euRavnaSW25CLEYWLHf5crmxfzEYcyErDz8x9ydkr/T4POloH3eqA==", + "requires": { + "@loaders.gl/core": "^2.3.0", + "@loaders.gl/images": "^2.3.0", + "@luma.gl/core": "^8.3.1", + "@math.gl/web-mercator": "^3.3.0", + "gl-matrix": "^3.0.0", + "math.gl": "^3.3.0", + "mjolnir.js": "^2.3.0", + "probe.gl": "^3.2.1" + } + }, + "@deck.gl/geo-layers": { + "version": "8.3.7", + "resolved": "https://registry.npmjs.org/@deck.gl/geo-layers/-/geo-layers-8.3.7.tgz", + "integrity": "sha512-DLp4/U6EDmUugamTGDipB9OYk0hZvCdFoKdqe65UujmnRxVWOmzUQJdWdGUPnWfhHFk7oDWekSH1oOerq8MFGQ==", + "requires": { + "@loaders.gl/3d-tiles": "^2.3.0", + "@loaders.gl/loader-utils": "^2.3.0", + "@loaders.gl/mvt": "^2.3.0", + "@loaders.gl/terrain": "^2.3.0", + "@loaders.gl/tiles": "^2.3.0", + "@math.gl/culling": "^3.3.0", + "@math.gl/web-mercator": "^3.3.0", + "h3-js": "^3.6.0", + "long": "^3.2.0", + "math.gl": "^3.3.0" + } + }, + "@deck.gl/layers": { + "version": "8.3.7", + "resolved": "https://registry.npmjs.org/@deck.gl/layers/-/layers-8.3.7.tgz", + "integrity": "sha512-cwt6PPrGTwy1RgxIh/BF/HDtmWiQwH8cJSPPzGN6UZpoqHNlRp/g05hJpr8FQCjkvUr11GyH2+vA5ndD5KfW2A==", + "requires": { + "@loaders.gl/images": "^2.3.0", + "@mapbox/tiny-sdf": "^1.1.0", + "@math.gl/polygon": "^3.3.0", + "earcut": "^2.0.6" + } + }, + "@deck.gl/mesh-layers": { + "version": "8.3.7", + "resolved": "https://registry.npmjs.org/@deck.gl/mesh-layers/-/mesh-layers-8.3.7.tgz", + "integrity": "sha512-mJ2dMzHhlwD7LtAFNUG8skFnY8lRUnkZpiG4hAXCWG1x5T4pTGOKeVuWZkoZJGjYlqnNuyuHk6Mk71/A834yvg==", + "requires": { + "@luma.gl/experimental": "^8.3.1", + "@luma.gl/shadertools": "^8.3.1" + } + }, "@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -2880,6 +2943,341 @@ } } }, + "@loaders.gl/3d-tiles": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/3d-tiles/-/3d-tiles-2.3.3.tgz", + "integrity": "sha512-eZSNh2eHyqp4zV1jW16OsYRT8r+0oq2/koSGfVuu3IdRBJGc1U2DfF+PoNz/FwXZwdjlSFXEvlxDEiVHoQhrLw==", + "requires": { + "@loaders.gl/core": "2.3.3", + "@loaders.gl/draco": "2.3.3", + "@loaders.gl/gltf": "2.3.3", + "@loaders.gl/loader-utils": "2.3.3", + "@loaders.gl/math": "2.3.3", + "@loaders.gl/tiles": "2.3.3", + "@math.gl/core": "^3.3.0", + "@math.gl/geospatial": "^3.3.0", + "@probe.gl/stats": "^3.3.0" + } + }, + "@loaders.gl/core": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/core/-/core-2.3.3.tgz", + "integrity": "sha512-5e3NHEY9RaNLvlbJ0B9AViMGLotVhVZXT+prkG4oqzGRHhz6Wk6hCCB1T43iVEl2XY+WF96aadHTuBQ14Nummg==", + "requires": { + "@babel/runtime": "^7.3.1", + "@loaders.gl/loader-utils": "2.3.3" + } + }, + "@loaders.gl/draco": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/draco/-/draco-2.3.3.tgz", + "integrity": "sha512-PcWt1AJwUhOuaEfhjLM9U1gQAcujKbWtR4v5cKcCBRpjRaQk/fVdpM+uT+pmRpgjSZmpIRr++di+V1lCsF6T+A==", + "requires": { + "@babel/runtime": "^7.3.1", + "@loaders.gl/loader-utils": "2.3.3", + "draco3d": "^1.3.6" + } + }, + "@loaders.gl/gis": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/gis/-/gis-2.3.3.tgz", + "integrity": "sha512-CvPF41EfYPIbv3vHx6vaX7b6pvp1CfvIugFamq96KRK/ZadNhnYEjPvJsekGDMSsuhCrMXz+Hadf0peW0Rqdow==", + "requires": { + "@loaders.gl/loader-utils": "2.3.3", + "@mapbox/vector-tile": "^1.3.1", + "pbf": "^3.2.1" + } + }, + "@loaders.gl/gltf": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/gltf/-/gltf-2.3.3.tgz", + "integrity": "sha512-HZY3xdPug3svTLmyi94sJj1DvOrdOoSYC/LkIS796oGP5wlca7v74jaz2NHR/Aq242heCXjH3w0qbS0C3gfcYQ==", + "requires": { + "@loaders.gl/core": "2.3.3", + "@loaders.gl/draco": "2.3.3", + "@loaders.gl/images": "2.3.3", + "@loaders.gl/loader-utils": "2.3.3" + } + }, + "@loaders.gl/images": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/images/-/images-2.3.3.tgz", + "integrity": "sha512-BTuy4SiCFXdvKMPw0C/Kl/oN9763QhDx/PUCfIMkuAYkQPfAsai5mNnFBs+4WeHg28INXcQlEG8Ad5/OwGNaCQ==", + "requires": { + "@loaders.gl/loader-utils": "2.3.3" + } + }, + "@loaders.gl/loader-utils": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/loader-utils/-/loader-utils-2.3.3.tgz", + "integrity": "sha512-QUBBy5ZC8cyHYTAoK9Z84i/bAI/jCh/J4fOfh52ra8F373uXZpSNfPMoW7OMMutzZGPneD5Coe6TRL7kkbtJVw==", + "requires": { + "@babel/runtime": "^7.3.1", + "@probe.gl/stats": "^3.3.0" + } + }, + "@loaders.gl/math": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/math/-/math-2.3.3.tgz", + "integrity": "sha512-DQp5d184kNNYkZC1josNH45HHsK4RXrBMAkmrzSQ4HqR/kirG4ODo0b6N7OAtYfQgmQSC+XiFbXILw1Hi4GWwg==", + "requires": { + "@loaders.gl/images": "2.3.3", + "@loaders.gl/loader-utils": "2.3.3", + "@math.gl/core": "^3.3.0" + } + }, + "@loaders.gl/mvt": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/mvt/-/mvt-2.3.3.tgz", + "integrity": "sha512-1Dba/SigK70WhsUQxOV+hnaDBwIVyRLMvEv88UocLCS5ez+A4kMCQVqtgM/Q7LcYIniMZTbQI9j0Eqb7x7ifHA==", + "requires": { + "@loaders.gl/gis": "2.3.3", + "@loaders.gl/loader-utils": "2.3.3", + "@mapbox/point-geometry": "~0.1.0", + "@mapbox/vector-tile": "^1.3.1", + "pbf": "^3.2.1" + } + }, + "@loaders.gl/terrain": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/terrain/-/terrain-2.3.3.tgz", + "integrity": "sha512-clmiaz8lb40YodbBo9gSnQ7c/+5nWrK7ejEUJ8lGJ2ukVIgzyTm0MMwjeroj64fudXunmvMZGpaK51GaYT93kQ==", + "requires": { + "@babel/runtime": "^7.3.1", + "@loaders.gl/loader-utils": "2.3.3", + "@mapbox/martini": "^0.2.0" + } + }, + "@loaders.gl/tiles": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@loaders.gl/tiles/-/tiles-2.3.3.tgz", + "integrity": "sha512-a5+DlDg+WtBUjXlRkBCoqQQe/9abLhtbbYRGy87L0XWlkoqlehrrwk2qbPFJHCBadQno4402WZ343LoLFG5QEA==", + "requires": { + "@loaders.gl/core": "2.3.3", + "@loaders.gl/loader-utils": "2.3.3", + "@loaders.gl/math": "2.3.3", + "@math.gl/core": "^3.3.0", + "@math.gl/culling": "^3.3.0", + "@math.gl/geospatial": "^3.3.0", + "@math.gl/web-mercator": "^3.3.0", + "@probe.gl/stats": "^3.3.0" + } + }, + "@luma.gl/constants": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/constants/-/constants-8.3.1.tgz", + "integrity": "sha512-3b2RScz7TSwsrHjRx1iYvyn46fKXtR/mOSyFOPiRx+15FOLBdkYL2DPpaJAZ5fU9Rx7ToazJiWW1Mzgn6z2d0A==" + }, + "@luma.gl/core": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/core/-/core-8.3.1.tgz", + "integrity": "sha512-QMVxS83HQpVQ8D/74/A20fl1Wz7qLuV5bQuVZhvQ6bkHb8A6gAZMWr4Y2gpWNJTStWJuDkzAL8pB3us1jWCg2Q==", + "requires": { + "@babel/runtime": "^7.0.0", + "@luma.gl/constants": "8.3.1", + "@luma.gl/engine": "8.3.1", + "@luma.gl/shadertools": "8.3.1", + "@luma.gl/webgl": "8.3.1" + } + }, + "@luma.gl/engine": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/engine/-/engine-8.3.1.tgz", + "integrity": "sha512-oE7sNmSihLeMCCrGYx6hv3g1GZAcNUbL8XKAQQNxs7Bo4abGIURuHFEc9mpT90YtEtkQcg2OewykeZT9jD9mIg==", + "requires": { + "@babel/runtime": "^7.0.0", + "@luma.gl/constants": "8.3.1", + "@luma.gl/gltools": "8.3.1", + "@luma.gl/shadertools": "8.3.1", + "@luma.gl/webgl": "8.3.1", + "math.gl": "^3.3.0", + "probe.gl": "^3.2.1" + } + }, + "@luma.gl/experimental": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/experimental/-/experimental-8.3.1.tgz", + "integrity": "sha512-yN6UYqQ8bi6dCxjsoDIkDP3v7ul6W8K9vseq6wT73Qjn/+4vUDxe/yHgMmRXxik/CJDEWxb3RJhU6ZNf7uSLmA==", + "requires": { + "@luma.gl/constants": "8.3.1", + "earcut": "^2.0.6", + "math.gl": "^3.3.0" + } + }, + "@luma.gl/gltools": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/gltools/-/gltools-8.3.1.tgz", + "integrity": "sha512-l/mnVSG5ioW19eZHMJlOD6crR58fwmdLoEKooXhnHiHofZ37h9HNlRlDf0XZIJPe4H4KLUM+Vv9VK0hqRrZHqA==", + "requires": { + "@babel/runtime": "^7.0.0", + "@luma.gl/constants": "8.3.1", + "probe.gl": "^3.2.1" + } + }, + "@luma.gl/shadertools": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/shadertools/-/shadertools-8.3.1.tgz", + "integrity": "sha512-y9s1R0Uv64QooGKROkNCvPKJd5CJDQ21wxJt5FH/E98F0z4IcJXzKWu1num/XG23eSJyQpIf7qsSqvXDBfm/fA==", + "requires": { + "@babel/runtime": "^7.0.0", + "math.gl": "^3.3.0" + } + }, + "@luma.gl/webgl": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@luma.gl/webgl/-/webgl-8.3.1.tgz", + "integrity": "sha512-lsGo5Pp/hPlKj1emErRAUvOBxztU/goltBh3hfhg7BoKdlEa6EJcfjqX+YkCmfc8bbp7QePM7mj+1ZsrzKhlgg==", + "requires": { + "@babel/runtime": "^7.0.0", + "@luma.gl/constants": "8.3.1", + "@luma.gl/gltools": "8.3.1", + "probe.gl": "^3.2.1" + } + }, + "@mapbox/geojson-rewind": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@mapbox/geojson-rewind/-/geojson-rewind-0.5.0.tgz", + "integrity": "sha512-73l/qJQgj/T/zO1JXVfuVvvKDgikD/7D/rHAD28S9BG1OTstgmftrmqfCx4U+zQAmtsB6HcDA3a7ymdnJZAQgg==", + "requires": { + "concat-stream": "~2.0.0", + "minimist": "^1.2.5" + }, + "dependencies": { + "concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + } + } + }, + "@mapbox/geojson-types": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@mapbox/geojson-types/-/geojson-types-1.0.2.tgz", + "integrity": "sha512-e9EBqHHv3EORHrSfbR9DqecPNn+AmuAoQxV6aL8Xu30bJMJR1o8PZLZzpk1Wq7/NfCbuhmakHTPYRhoqLsXRnw==" + }, + "@mapbox/jsonlint-lines-primitives": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz", + "integrity": "sha1-zlblOfg1UrWNENZy6k1vya3HsjQ=" + }, + "@mapbox/mapbox-gl-supported": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-1.5.0.tgz", + "integrity": "sha512-/PT1P6DNf7vjEEiPkVIRJkvibbqWtqnyGaBz3nfRdcxclNSnSdaLU5tfAgcD7I8Yt5i+L19s406YLl1koLnLbg==" + }, + "@mapbox/martini": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@mapbox/martini/-/martini-0.2.0.tgz", + "integrity": "sha512-7hFhtkb0KTLEls+TRw/rWayq5EeHtTaErgm/NskVoXmtgAQu/9D299aeyj6mzAR/6XUnYRp2lU+4IcrYRFjVsQ==" + }, + "@mapbox/point-geometry": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-0.1.0.tgz", + "integrity": "sha1-ioP5M1x4YO/6Lu7KJUMyqgru2PI=" + }, + "@mapbox/tiny-sdf": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-1.1.1.tgz", + "integrity": "sha512-Ihn1nZcGIswJ5XGbgFAvVumOgWpvIjBX9jiRlIl46uQG9vJOF51ViBYHF95rEZupuyQbEmhLaDPLQlU7fUTsBg==" + }, + "@mapbox/unitbezier": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.0.tgz", + "integrity": "sha1-FWUb1VOme4WB+zmIEMmK2Go0Uk4=" + }, + "@mapbox/vector-tile": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-1.3.1.tgz", + "integrity": "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw==", + "requires": { + "@mapbox/point-geometry": "~0.1.0" + } + }, + "@mapbox/whoots-js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz", + "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==" + }, + "@math.gl/core": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@math.gl/core/-/core-3.3.1.tgz", + "integrity": "sha512-rO4Smhqe3NrDUjZ3HyRv/3igPodw3qY5UtK7Zdr966ixysalE/9PRNwJFi7e4U+I5xa7pJHcEUekzO+GyNuF1Q==", + "requires": { + "@babel/runtime": "^7.0.0", + "gl-matrix": "^3.0.0" + } + }, + "@math.gl/culling": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@math.gl/culling/-/culling-3.3.1.tgz", + "integrity": "sha512-x2oHEt5cn9TBLQOcVmVRgYut/JCWxejJAO1vuWwNUOxtERzMzRCEgIpltEyePEEqPny3rF+k4Uc/NwtC2/2/CQ==", + "requires": { + "@babel/runtime": "^7.0.0", + "@math.gl/core": "3.3.1", + "gl-matrix": "^3.0.0" + } + }, + "@math.gl/geospatial": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@math.gl/geospatial/-/geospatial-3.3.1.tgz", + "integrity": "sha512-tqdc3aXtF3yK4Dy09Ccp/qdPcqIVWLvxkLDpibyNQOuHEqBrpprx008D5Rq6wICdx1bRrlwr/vT8x65FLykw7Q==", + "requires": { + "@babel/runtime": "^7.0.0", + "@math.gl/core": "3.3.1", + "gl-matrix": "^3.0.0" + } + }, + "@math.gl/polygon": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@math.gl/polygon/-/polygon-3.3.1.tgz", + "integrity": "sha512-Qef9bIz7P+XPjNum2OwC0W6JRyU22sWPhq9qTsUYH4IcqVljzV7k2vcySHGCSq5muded5xQceG73W/YCMCK2Kg==", + "requires": { + "@math.gl/core": "3.3.1" + } + }, + "@math.gl/web-mercator": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@math.gl/web-mercator/-/web-mercator-3.3.1.tgz", + "integrity": "sha512-gUOs7jJgTQi4DGLeX4NwiWn8R3Awg3HJxQyJeLpJ065xVREQAaXWnPbk7BcZlm+XLK0CzNLl3zHOQ4gLWGfW7g==", + "requires": { + "@babel/runtime": "^7.0.0", + "gl-matrix": "^3.0.0" + } + }, "@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -2896,6 +3294,14 @@ "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", "dev": true }, + "@probe.gl/stats": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@probe.gl/stats/-/stats-3.3.0.tgz", + "integrity": "sha512-CV4c3EgallqZTO88u34/u9L5asL0nCVP1BEkb4qcXlh8Qz2Vmygbyjz1ViQsct6rSi2lJ52lo6W0PnlpZJJvcA==", + "requires": { + "@babel/runtime": "^7.0.0" + } + }, "@sinonjs/commons": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.7.1.tgz", @@ -9326,6 +9732,11 @@ "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==" }, + "csscolorparser": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/csscolorparser/-/csscolorparser-1.0.3.tgz", + "integrity": "sha1-s085HupNqPPpgjHizNjfnAQfFxs=" + }, "cssesc": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-0.1.0.tgz", @@ -10855,6 +11266,11 @@ "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", "dev": true }, + "draco3d": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.3.6.tgz", + "integrity": "sha512-zZoH5JNcdWDrUb2ks2mbzGDUUPvDaDf1ysTJS2St+3/F/8XcKAX4VKgzPjTP7MfHegHQ7Udv8ovS+R3AgXlH7g==" + }, "duplexer": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", @@ -10906,6 +11322,11 @@ } } }, + "earcut": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.2.tgz", + "integrity": "sha512-eZoZPPJcUHnfRZ0PjLvx2qBordSiO8ofC3vt+qACLM95u+4DovnbYNpQtJh0DNsWj8RnxrQytD4WA8gj5cRIaQ==" + }, "easy-stack": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.0.tgz", @@ -12897,6 +13318,11 @@ "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", "dev": true }, + "geojson-vt": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-3.2.1.tgz", + "integrity": "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg==" + }, "get-assigned-identifiers": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", @@ -12965,6 +13391,11 @@ "dev": true, "optional": true }, + "gl-matrix": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.3.0.tgz", + "integrity": "sha512-COb7LDz+SXaHtl/h4LeaFcNdJdAQSDeVqjiIihSXNrkWObZLhDI4hIkZC11Aeqp7bcE72clzB0BnDXr2SmslRA==" + }, "glob": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", @@ -13161,6 +13592,11 @@ "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", "dev": true }, + "grid-index": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/grid-index/-/grid-index-1.1.0.tgz", + "integrity": "sha512-HZRwumpOGUrHyxO5bqKZL0B0GlUpwtCAzZ42sgxUPniu33R1LSFH5yrIcBCHjkctCAh3mtWKcKd9J4vDDdeVHA==" + }, "growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", @@ -13852,6 +14288,16 @@ "concat-stream": "^1.4.1" } }, + "h3-js": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/h3-js/-/h3-js-3.7.0.tgz", + "integrity": "sha512-EcH/qGU4khZsAEG39Uu8MvaCing0JFcuoe3K4Xmg5MofDIu1cNJl7z2AQS8ggvXGxboiLJqsGirhEqFKdd2gAA==" + }, + "hammerjs": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz", + "integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE=" + }, "handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", @@ -17631,6 +18077,11 @@ } } }, + "kdbush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-3.0.0.tgz", + "integrity": "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew==" + }, "kew": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/kew/-/kew-0.7.0.tgz", @@ -18204,6 +18655,43 @@ "object-visit": "^1.0.0" } }, + "mapbox-gl": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-1.12.0.tgz", + "integrity": "sha512-B3URR4qY9R/Bx+DKqP8qmGCai8IOZYMSZF7ZSvcCZaYTaOYhQQi8ErTEDZtFMOR0ZPj7HFWOkkhl5SqvDfpJpA==", + "requires": { + "@mapbox/geojson-rewind": "^0.5.0", + "@mapbox/geojson-types": "^1.0.2", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/mapbox-gl-supported": "^1.5.0", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^1.1.1", + "@mapbox/unitbezier": "^0.0.0", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "csscolorparser": "~1.0.3", + "earcut": "^2.2.2", + "geojson-vt": "^3.2.1", + "gl-matrix": "^3.2.1", + "grid-index": "^1.1.0", + "minimist": "^1.2.5", + "murmurhash-js": "^1.0.0", + "pbf": "^3.2.1", + "potpack": "^1.0.1", + "quickselect": "^2.0.0", + "rw": "^1.3.3", + "supercluster": "^7.1.0", + "tinyqueue": "^2.0.3", + "vt-pbf": "^3.1.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + } + } + }, "mapnik-reference": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/mapnik-reference/-/mapnik-reference-6.0.5.tgz", @@ -18239,6 +18727,14 @@ "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", "dev": true }, + "math.gl": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/math.gl/-/math.gl-3.3.1.tgz", + "integrity": "sha512-jsiR24h2rScT+y9pU9CxeJ3cNydXMcXz6739FIbLNvopLdHJYhs72KXZvslOnQOcL7T7Zaa02UFJZm1ywaAlQQ==", + "requires": { + "@math.gl/core": "3.3.1" + } + }, "mathml-tag-names": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.0.tgz", @@ -18615,6 +19111,15 @@ } } }, + "mjolnir.js": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/mjolnir.js/-/mjolnir.js-2.4.1.tgz", + "integrity": "sha512-bpqKc70aNlijeQCapJ8529EmjVj8VSfYdzh1WsbhWp0XEQSm9hAB6X350OyRVDpH5oTdAyX/NeYFqtwyuO4ZKA==", + "requires": { + "@babel/runtime": "^7.0.0", + "hammerjs": "^2.0.8" + } + }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", @@ -18774,6 +19279,11 @@ "minimatch": "^3.0.0" } }, + "murmurhash-js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz", + "integrity": "sha1-sGJ44h/Gw3+lMTcysEEry2rhX1E=" + }, "mustache": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/mustache/-/mustache-1.1.0.tgz", @@ -20158,6 +20668,15 @@ } } }, + "pbf": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/pbf/-/pbf-3.2.1.tgz", + "integrity": "sha512-ClrV7pNOn7rtmoQVF4TS1vyU0WhYRnP92fzbfF75jAIwpnzdJXf8iTd4CMEqO4yUenH6NDqLiwjqlh6QgZzgLQ==", + "requires": { + "ieee754": "^1.1.12", + "resolve-protobuf-schema": "^2.1.0" + } + }, "pbkdf2": { "version": "3.0.17", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", @@ -22016,6 +22535,11 @@ "uniqs": "^2.0.0" } }, + "potpack": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.1.tgz", + "integrity": "sha512-15vItUAbViaYrmaB/Pbw7z6qX2xENbFSTA7Ii4tgbPtasxm5v6ryKhKtL91tpWovDJzTiZqdwzhcFBCwiMVdVw==" + }, "prebuild-install": { "version": "5.3.4", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.4.tgz", @@ -22184,6 +22708,15 @@ "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", "dev": true }, + "probe.gl": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/probe.gl/-/probe.gl-3.3.0.tgz", + "integrity": "sha512-59E6AEw4N8sU4PKfAl7S2UBYJCOa064WpEFcXfeFOB/36FJtplYY+261DqLjLAvOqRRHiKVEQUBo63PQ3jKeWA==", + "requires": { + "@babel/runtime": "^7.0.0", + "@probe.gl/stats": "3.3.0" + } + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -22225,6 +22758,11 @@ "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", "dev": true }, + "protocol-buffers-schema": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.4.0.tgz", + "integrity": "sha512-G/2kcamPF2S49W5yaMGdIpkG6+5wZF0fzBteLKgEHjbNzqjZQ85aAs1iJGto31EJaSTkNvHs5IXuHSaTLWBAiA==" + }, "proxy-addr": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", @@ -22334,6 +22872,11 @@ "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", "dev": true }, + "quickselect": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-2.0.0.tgz", + "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==" + }, "quote-stream": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/quote-stream/-/quote-stream-1.0.2.tgz", @@ -23139,6 +23682,14 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" }, + "resolve-protobuf-schema": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", + "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==", + "requires": { + "protocol-buffers-schema": "^3.3.1" + } + }, "resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", @@ -23282,6 +23833,11 @@ "aproba": "^1.1.1" } }, + "rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q=" + }, "rx-lite": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", @@ -25856,6 +26412,14 @@ } } }, + "supercluster": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-7.1.0.tgz", + "integrity": "sha512-LDasImUAFMhTqhK+cUXfy9C2KTUqJ3gucLjmNLNFmKWOnDUBxLFLH9oKuXOTCLveecmxh8fbk8kgh6Q0gsfe2w==", + "requires": { + "kdbush": "^3.0.0" + } + }, "supports-color": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", @@ -26783,6 +27347,11 @@ "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.1.tgz", "integrity": "sha1-9PrTM0R7wLB9TcjpIJ2POaisd+g=" }, + "tinyqueue": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-2.0.3.tgz", + "integrity": "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==" + }, "title-case": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/title-case/-/title-case-1.1.2.tgz", @@ -27965,6 +28534,16 @@ "indexof": "0.0.1" } }, + "vt-pbf": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/vt-pbf/-/vt-pbf-3.1.1.tgz", + "integrity": "sha512-pHjWdrIoxurpmTcbfBWXaPwSmtPAHS105253P1qyEfSTV2HJddqjM+kIHquaT/L6lVJIk9ltTGc0IxR/G47hYA==", + "requires": { + "@mapbox/point-geometry": "0.1.0", + "@mapbox/vector-tile": "^1.3.1", + "pbf": "^3.0.5" + } + }, "vue": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.7.tgz", diff --git a/package.json b/package.json index ad950a0477ae..c61b5144c87b 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,11 @@ "@carto/toolkit-core": "0.0.1-rc.18", "@carto/toolkit-custom-storage": "0.0.1-rc.18", "@carto/zera": "1.0.7", + "@deck.gl/carto": "^8.3.7", + "@deck.gl/core": "^8.3.7", + "@deck.gl/geo-layers": "^8.3.7", + "@deck.gl/layers": "^8.3.7", + "@deck.gl/mesh-layers": "^8.3.7", "backbone": "1.2.3", "backbone-forms": "0.14.0", "backbone-model-file-upload": "CartoDB/backbone-model-file-upload#1.0.2", @@ -48,6 +53,7 @@ "jquery": "2.1.4", "leaflet": "CartoDB/Leaflet#v1.3.1-carto1", "loader-utils": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", + "mapbox-gl": "^1.12.0", "moment": "2.18.1", "moment-timezone": "^0.5.13", "node-polyglot": "1.0.0", From 3359605dfefa6d4f073d7532bd97072e6620213b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Arroyo=20Torrens?= Date: Mon, 16 Nov 2020 14:32:22 +0100 Subject: [PATCH 02/56] Add MapPreview component --- .../components/Catalog/MapPreview.vue | 122 ++++++++++++++++++ .../pages/Data/CatalogDatasetMap.vue | 1 - .../pages/Data/CatalogDatasetSummary.vue | 5 + 3 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 lib/assets/javascripts/new-dashboard/components/Catalog/MapPreview.vue diff --git a/lib/assets/javascripts/new-dashboard/components/Catalog/MapPreview.vue b/lib/assets/javascripts/new-dashboard/components/Catalog/MapPreview.vue new file mode 100644 index 000000000000..2cf7b3b80f78 --- /dev/null +++ b/lib/assets/javascripts/new-dashboard/components/Catalog/MapPreview.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue index d813d275ddde..86fafa462b20 100644 --- a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue +++ b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetMap.vue @@ -99,7 +99,6 @@ export default { .viewer-container { margin: 12px auto; padding: 16px; - max-width: 800px; border-radius: 4px; background: $color-primary--soft; diff --git a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetSummary.vue b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetSummary.vue index c8c75b9219ca..5c7bee4896f4 100644 --- a/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetSummary.vue +++ b/lib/assets/javascripts/new-dashboard/pages/Data/CatalogDatasetSummary.vue @@ -1,6 +1,7 @@