KORTxyz-datastore
The kortxyz-datastore component is a web component in the @kortxyz/kortxyz-components library that provides declarative data handling for GeoJSON data.
It allows the reuse of the same datasource across multiple web components. Plus some additional capabilities.
<kortxyz-datastore
store="teststore"
data="https://example.geojson"
></kortxyz-datastore>However the GeoJSON could also be embedded inside the html-tag.
<kortxyz-datastore
store="inlineExample"
>
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {"id":3,"text":"Hey!"},
"geometry": {
"coordinates": [11,54],
"type": "Point"
}
}
]
}
</kortxyz-datastore>
Updated on Jan 8, 2026