Skip to content

Commit

Permalink
Carte - Popup : Afficher la photo principale main_photo
Browse files Browse the repository at this point in the history
FIX : Affiche la vignette de la photo définie comme principale pour chaque site (champ ``main_photo``).
  • Loading branch information
xavyeah39 authored Mar 16, 2022
1 parent 3311525 commit 93b3b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/static/js/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ geopsg.initSites = (options) => {
if (site.ref_site) {
markerText += '<br/>' + '(réf : ' + site.ref_site + ')'
}
marker.bindPopup('<div class="img" style="background-image: url(' + site.photos[site.photos.length - 1].url + ');"></div><div class="title">' + markerText + '</div>', {
marker.bindPopup('<div class="img" style="background-image: url(' + site.photo + ');"></div><div class="title">' + markerText + '</div>', {
closeButton: false
})
marker.on('mouseover', (e) => {
Expand Down

1 comment on commit 93b3b9c

@xavyeah39
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en référence à #106

Please sign in to comment.