Put map icons in a circle
This commit is contained in:
parent
1f8d465c6d
commit
f8658a7850
|
@ -1,8 +1,11 @@
|
|||
function emoji_icon(emoji) {
|
||||
var iconStyle = "<div style='background-color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border: 1px solid black;'> <div style='font-size: 18px;'>" + emoji + "</div></div>";
|
||||
|
||||
return L.divIcon({
|
||||
className: 'custom-div-icon',
|
||||
html: "<div style='font-size: 24px;'>" + emoji + "</div>",
|
||||
iconSize: [30, 42],
|
||||
html: iconStyle,
|
||||
iconSize: [60, 60],
|
||||
iconAnchor: [15, 15],
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue