When a sib-map is next to a sib-display on a page, it does not show any data
With this code:
<script type="module" src="https://unpkg.com/@startinblox/core@0.9"></script>
<script type="module" src="https://unpkg.com/@startinblox/core@0.9/dist/components/sib-map.js"></script>
...
<sib-display
data-src="data/map/events.jsonld"
fields="name"
></sib-display>
<sib-map
data-src="data/map/events.jsonld"
style="display: block; width: 800px; height: 600px;"
></sib-map>
We see the events name, but no markers are added on the map.
The problem is that with a map, we give this extra-context
to the store so it can resolve the lat
and lng
properties:
{
"geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
"lat": "geo:lat",
"lng": "geo:long"
}
The sib-display
does not add this extra context, and it sends the first request to the store which cache these resources, properties expanded.
So these resources have http://happy-dev.fr/owl/#lat
and not http://www.w3.org/2003/01/geo/wgs84_pos#lat
.
@balessan @sylvain @clement Do we have to make the extra context in the default one on the client side? Or do we need to cache the resources by id + context?