Skip to content

Commit

Permalink
fix poster icon sizes and re-add popup
Browse files Browse the repository at this point in the history
  • Loading branch information
democat3457 committed Nov 5, 2024
1 parent 2170f9c commit 941bcd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion posters/templates/posters/poster_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ <h1>Posters</h1>
<script>
// Set default icon size to less
L.Icon.Default.prototype.options.iconSize = [15, 25];
L.Icon.Default.prototype.options.iconAnchor = [7, 25];
L.Icon.Default.prototype.options.popupAnchor = [15, 25];
L.Icon.Default.prototype.options.shadowSize = [25, 25];

// Initialize the map
var map = L.map("map").setView([32.98725, -96.74837], 17); // Set default view
Expand Down Expand Up @@ -79,7 +82,7 @@ <h1>Posters</h1>
parseFloat(poster.latitude),
parseFloat(poster.longitude),
])
//.bindPopup(poster.location + " - " + poster.visits.count())
.bindPopup(L.popup().setContent(poster.location + " - " + poster.visits.count()))
.addTo(map);
});
})
Expand Down

0 comments on commit 941bcd6

Please sign in to comment.