mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
marcercluster tooltips
This commit is contained in:
parent
9d48c479a5
commit
f2758843bf
2 changed files with 20 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
import { divIcon } from 'leaflet';
|
||||
|
||||
export const clusterIcon = () => divIcon({
|
||||
export const clusterIcon = cluster => divIcon({
|
||||
html: `
|
||||
<div class="custom-marker-cluster">
|
||||
<div class="custom-marker-cluster">
|
||||
<span>${cluster.getChildCount()}</span>
|
||||
<svg width="24" height="24" viewBox="-2 -2 36 36">
|
||||
<circle cx="10" cy="20" fill="white" r="4" />
|
||||
<circle cx="22" cy="20" fill="white" r="4" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue