Skip to content

Commit

Permalink
Update marker icon for items map (#637)
Browse files Browse the repository at this point in the history
Modifed color to `#ee1921` and 80% opacity, based on
https://pixabay.com/vectors/google-map-marker-red-peg-309740/
  • Loading branch information
fsteeg committed Jan 25, 2024
1 parent 4c1c404 commit e654eb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/tags/items_map.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
var lon = @string((json \\ "lon").head)
var latlng@(id) = L.latLng(lat, lon);
var icon@(id) = L.icon({
iconUrl: '@controllers.routes.Assets.at("javascripts/images/marker-icon-book.png")',
iconSize: [30, 30],
iconAnchor: [15, 30],
iconUrl: '@controllers.routes.Assets.at("javascripts/images/marker-icon-red.png")',
iconSize: [20, 30],
iconAnchor: [10, 30],
popupAnchor: [0, -30]
});
var marker@(id) = L.marker([lat, lon],{
Expand Down
Binary file removed public/javascripts/images/marker-icon-book.png
Binary file not shown.
Binary file added public/javascripts/images/marker-icon-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e654eb0

Please sign in to comment.