Map components - Leaflet and OpenLayers (#968)
* [components,maps][l]: implements Leaflet map component -- #963 * [openspending, maps][m]: fix build for leaflet map * Feature/openlayers map (#967) * [maps][xl] - working with swc equals to minify * [maps][xs] - fixing height * [openspending][xs] - testing * [openspending][xs] - testing * [openspending][xs] - change order drd * [openspending][xs] - add map * [maps,tests][xs]: add default export to OpenLayers component * [@portaljs/components][m] - map components --------- Co-authored-by: João Demenech <joaommdemenech@gmail.com>
This commit is contained in:
@@ -15,6 +15,17 @@ helps to bring this data to life. It maps out the city's annual spending across
|
||||
the education slice has grown noticeably over the years, indicating Frankfurt's intention to prioritize this space.
|
||||
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',
|
||||
@@ -156,8 +167,8 @@ the key to a prosperous future.
|
||||
title: '',
|
||||
field: 'label',
|
||||
scale: {
|
||||
domain: ["Education"],
|
||||
range: ['#64b5f6']
|
||||
domain: ['Education'],
|
||||
range: ['#64b5f6'],
|
||||
},
|
||||
},
|
||||
tooltip: [
|
||||
@@ -189,4 +200,3 @@ Frankfurt is a city that's recognized the power of education, and it's using tha
|
||||
One can only hope that more cities follow suit.
|
||||
|
||||
[^1]: https://worldpopulationreview.com/world-cities/frankfurt-population
|
||||
|
||||
|
||||
Reference in New Issue
Block a user