Skip to content

Commit

Permalink
Make style rules more general
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeiown committed May 12, 2024
1 parent ca16258 commit 14c3b7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion js/markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export function addMarkers(map) {
iconUrl: `./markers/${address.marker}_marker.png`,
iconSize: [38, 38],
iconAnchor: [15, 42],
className: 'custom-icon',
});

const marker = L.marker([address.lat, address.lng], { icon: customIcon });
Expand Down
3 changes: 1 addition & 2 deletions js/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ export function addStyles() {
line-height: 2;
}
.custom-icon,
.leaflet-marker-icon.marker-cluster.marker-cluster-small {
.leaflet-marker-icon {
filter: drop-shadow(4px 12px 6px rgba(0,0,0,0.5));
}
`;
Expand Down

0 comments on commit 14c3b7c

Please sign in to comment.