Code
Pour afficher uniquement la fiche détail d'une randonnée avec la carte dans le widget, il faut ajouter la balise <grw-trek-detail></grw-trek-detail>
au dessus de la balise <grw-map></grw-app>
Voici un exemple de code complet :
html
<div>
<grw-trek-provider api="https://geotrek-admin.portcros-parcnational.fr/api/v2/" languages="fr" trek-id="690"></grw-trek-provider>
<div style="width: 100%; height: auto"><grw-trek-detail></grw-trek-detail></div>
<div style="width: 100%; height: 800px">
<grw-map
name-layer="IGN,OpenStreetMap"
url-layer="https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&FORMAT=image/png&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x},https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution-layer="<a target='_blank' href='https://ign.fr/'>IGN</a>,OpenStreetMap"
weather="true"
rounded="true"
color-departure-icon="#006b3b"
color-arrival-icon="#85003b"
color-sensitive-area="#4974a5"
color-trek-line="#003e42"
color-poi-icon="#974c6e"
color-primary-app="#008eaa"
color-on-primary="#ffffff"
color-surface="#1c1b1f"
color-on-surface="#49454e"
color-surface-variant="#fff"
color-on-surface-variant="#1c1b1f"
color-primary-container="#94CCD8"
color-on-primary-container="#005767"
color-secondary-container="#94CCD8"
color-on-secondary-container="#1d192b"
color-background="#fff"
color-surface-container-high="#fff"
color-surface-container-low="#fff"
fab-background-color="#94CCD8"
fab-color="#003e42"
></grw-map>
</div>
</div>