[maps,tests][xs]: add default export to OpenLayers component
This commit is contained in:
@@ -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.
|
The city's commitment to education is abundantly clear.
|
||||||
|
|
||||||
<Map data="https://openlayers.org/data/vector/ecoregions.json" />
|
<Map data="https://openlayers.org/data/vector/ecoregions.json" />
|
||||||
|
|
||||||
|
<OpenLayers
|
||||||
|
layers={[
|
||||||
|
{
|
||||||
|
url: 'https://openlayers.org/data/vector/ecoregions.json',
|
||||||
|
name: 'Teste',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
|
||||||
<VegaLite
|
<VegaLite
|
||||||
spec={{
|
spec={{
|
||||||
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
||||||
|
|||||||
6
examples/openspending/package-lock.json
generated
6
examples/openspending/package-lock.json
generated
@@ -14,7 +14,7 @@
|
|||||||
"@heroicons/react": "^2.0.18",
|
"@heroicons/react": "^2.0.18",
|
||||||
"@octokit/plugin-throttling": "^5.2.2",
|
"@octokit/plugin-throttling": "^5.2.2",
|
||||||
"@portaljs/ckan": "^0.0.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/core": "^1.0.5",
|
||||||
"@portaljs/remark-callouts": "^1.0.5",
|
"@portaljs/remark-callouts": "^1.0.5",
|
||||||
"@portaljs/remark-embed": "^1.0.4",
|
"@portaljs/remark-embed": "^1.0.4",
|
||||||
@@ -2749,8 +2749,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@portaljs/components": {
|
"node_modules/@portaljs/components": {
|
||||||
"version": "0.1.12",
|
"version": "0.1.12",
|
||||||
"resolved": "file:portaljs-components-0.1.12.tgz",
|
"resolved": "file:../../packages/components/portaljs-components-0.1.12.tgz",
|
||||||
"integrity": "sha512-lyK8IIhatAJpYFXiOOiTMvQkkj5FziLwepSD9cyN7gfiW7/VI0HhqapVaGulHk5TFJ9hD+mrTGE1EowoqpoCYQ==",
|
"integrity": "sha512-Cr+RQ7tkbIqtBNq5D8zeZEB2dOejxD0V78l/I4AbdjYI8jvQ4Evx6APEfhPs3im6LDEGrT28LslVTZJ6luslnw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@githubocto/flat-ui": "^0.14.1",
|
"@githubocto/flat-ui": "^0.14.1",
|
||||||
"@heroicons/react": "^2.0.17",
|
"@heroicons/react": "^2.0.17",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@heroicons/react": "^2.0.18",
|
"@heroicons/react": "^2.0.18",
|
||||||
"@octokit/plugin-throttling": "^5.2.2",
|
"@octokit/plugin-throttling": "^5.2.2",
|
||||||
"@portaljs/ckan": "^0.0.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/core": "^1.0.5",
|
||||||
"@portaljs/remark-callouts": "^1.0.5",
|
"@portaljs/remark-callouts": "^1.0.5",
|
||||||
"@portaljs/remark-embed": "^1.0.4",
|
"@portaljs/remark-embed": "^1.0.4",
|
||||||
|
|||||||
909
package-lock.json
generated
909
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
BIN
packages/components/portaljs-components-0.1.12.tgz
Normal file
BIN
packages/components/portaljs-components-0.1.12.tgz
Normal file
Binary file not shown.
@@ -34,7 +34,7 @@ interface OpenLayersProps {
|
|||||||
popup?: (selected: any) => JSX.Element;
|
popup?: (selected: any) => JSX.Element;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenLayers({
|
export default function OpenLayers({
|
||||||
layers,
|
layers,
|
||||||
center = [0, 0],
|
center = [0, 0],
|
||||||
zoom = 1,
|
zoom = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user