marker clusterization

This commit is contained in:
muerwre 2019-02-20 11:31:01 +07:00
parent 0caa8b3624
commit 9d48c479a5
7 changed files with 73 additions and 5 deletions

13
src/utils/clusterIcon.js Normal file
View 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>
`
});