Skip to content

Commit 2219323

Browse files
author
Julien Veyssier
committed
refs #44 fix favorite marker icons anchors
1 parent 7bbbd4d commit 2219323

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

js/favoritesController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ FavoritesController.prototype = {
219219
category = category.replace(' ', '-');
220220
var label = cluster.getChildCount();
221221
return new L.DivIcon(L.extend({
222+
iconAnchor: [14, 14],
222223
className: 'leaflet-marker-favorite-cluster cluster-marker',
223224
html: '<div class="favoriteClusterMarker '+category+'CategoryMarker"></div>​<span class="label">' + label + '</span>'
224225
}, this.icon));
@@ -464,7 +465,7 @@ FavoritesController.prototype = {
464465

465466
// icon for markers
466467
this.categoryDivIcon[rawName] = L.divIcon({
467-
iconAnchor: [10, 10],
468+
iconAnchor: [9, 9],
468469
className: 'leaflet-marker-favorite',
469470
html: '<div class="favoriteMarker '+name+'CategoryMarker"></div>'
470471
});

0 commit comments

Comments
 (0)