Skip to content

Commit

Permalink
Adding image to popup as an option.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedgar1mx committed Aug 30, 2024
1 parent 6f87f48 commit 628090e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/assets/js/main.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/components/organisms/Map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ export default class Map extends HTMLElement {
data[elem.link]
}" target="_blank">${data[elem.value]}</a></p>`;

case 'field-image':
return `<img style="width:100%" src="${elem.path}${data[elem.url]}${
elem.format
}" Alt="${data[elem.alt]}">`;

default:
break;
}
Expand Down
10 changes: 5 additions & 5 deletions src/stories/map.stories.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 628090e

Please sign in to comment.