Skip to content

Commit 4395102

Browse files
committed
feat(position): add BAM widget
1 parent fadfcbe commit 4395102

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/js/position.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ class Position {
468468
if (type === "myposition" || type === "context") {
469469
this.immersivePosition = new ImmersivePosion({lat: this.coordinates.lat, lng: this.coordinates.lon});
470470
html = `<div id="immersivePostionHtmlBefore">${this.immersivePosition.computeHtml()}</div>`;
471+
const BAMiframe = `<iframe frameBorder="0" src="https://pnx-si.github.io/BAM-widget/#/?filtersOnList=true&buffer=500&x=${this.coordinates.lon}&y=${this.coordinates.lat}&connector=GBIF&mode=gallery&nbTaxonPerLine=5&nbTaxonPerLine=2&showFilters=false&lang=fr&widgetType=list&switchModeAvailable=false&primaryColor=aaa&GBIF_ENDPOINT=https://api.gbif.org/v1&LIMIT=300&NB_PAGES=10&soundSource=wikidata&imageSource=wikidata" type="" style="width: 100%; height: 600px"></iframe>`;
472+
html += BAMiframe;
471473
}
472474

473475
this.header = position.text;

0 commit comments

Comments
 (0)