Skip to content

Commit

Permalink
Merge pull request #265 from CityOfDetroit/feature.264
Browse files Browse the repository at this point in the history
Adding image to popup as an option.
  • Loading branch information
jedgar1mx authored Aug 30, 2024
2 parents 6f87f48 + 628090e commit f6c794f
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 f6c794f

Please sign in to comment.