mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
marker clusterization
This commit is contained in:
parent
0caa8b3624
commit
9d48c479a5
7 changed files with 73 additions and 5 deletions
13
src/utils/clusterIcon.js
Normal file
13
src/utils/clusterIcon.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { divIcon } from 'leaflet';
|
||||
|
||||
export const clusterIcon = () => divIcon({
|
||||
html: `
|
||||
<div class="custom-marker-cluster">
|
||||
<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