[maps,tests][xs]: add default export to OpenLayers component

This commit is contained in:
João Demenech 2023-07-07 10:47:44 -03:00
parent 188706e02d
commit 5f1d8151f5
6 changed files with 783 additions and 146 deletions

View File

@ -16,6 +16,16 @@ the education slice has grown noticeably over the years, indicating Frankfurt's
The city's commitment to education is abundantly clear.
<Map data="https://openlayers.org/data/vector/ecoregions.json" />
<OpenLayers
layers={[
{
url: 'https://openlayers.org/data/vector/ecoregions.json',
name: 'Teste',
},
]}
/>
<VegaLite
spec={{
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',

View File

@ -14,7 +14,7 @@
"@heroicons/react": "^2.0.18",
"@octokit/plugin-throttling": "^5.2.2",
"@portaljs/ckan": "^0.0.2",
"@portaljs/components": "file:portaljs-components-0.1.12.tgz",
"@portaljs/components": "file:../../packages/components/portaljs-components-0.1.12.tgz",
"@portaljs/core": "^1.0.5",
"@portaljs/remark-callouts": "^1.0.5",
"@portaljs/remark-embed": "^1.0.4",
@ -2749,8 +2749,8 @@
},
"node_modules/@portaljs/components": {
"version": "0.1.12",
"resolved": "file:portaljs-components-0.1.12.tgz",
"integrity": "sha512-lyK8IIhatAJpYFXiOOiTMvQkkj5FziLwepSD9cyN7gfiW7/VI0HhqapVaGulHk5TFJ9hD+mrTGE1EowoqpoCYQ==",
"resolved": "file:../../packages/components/portaljs-components-0.1.12.tgz",
"integrity": "sha512-Cr+RQ7tkbIqtBNq5D8zeZEB2dOejxD0V78l/I4AbdjYI8jvQ4Evx6APEfhPs3im6LDEGrT28LslVTZJ6luslnw==",
"dependencies": {
"@githubocto/flat-ui": "^0.14.1",
"@heroicons/react": "^2.0.17",

View File

@ -18,7 +18,7 @@
"@heroicons/react": "^2.0.18",
"@octokit/plugin-throttling": "^5.2.2",
"@portaljs/ckan": "^0.0.2",
"@portaljs/components": "file:portaljs-components-0.1.12.tgz",
"@portaljs/components": "file:../../packages/components/portaljs-components-0.1.12.tgz",
"@portaljs/core": "^1.0.5",
"@portaljs/remark-callouts": "^1.0.5",
"@portaljs/remark-embed": "^1.0.4",

909
package-lock.json generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -34,7 +34,7 @@ interface OpenLayersProps {
popup?: (selected: any) => JSX.Element;
}
export function OpenLayers({
export default function OpenLayers({
layers,
center = [0, 0],
zoom = 1,