mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
typed some utils
This commit is contained in:
parent
cf6866240b
commit
5c3f09ec2c
5 changed files with 34 additions and 22 deletions
|
@ -1,14 +0,0 @@
|
|||
import { divIcon } from 'leaflet';
|
||||
|
||||
export const clusterIcon = cluster => divIcon({
|
||||
html: `
|
||||
<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" />
|
||||
<circle cx="16" cy="10" fill="white" r="4" />
|
||||
</svg>
|
||||
</div>
|
||||
`
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue