refactored rerendering speed

This commit is contained in:
Fedor Katurov 2020-01-16 11:49:24 +07:00
parent b6bf317649
commit 69d1d749cf
32 changed files with 144 additions and 2045 deletions

View file

@ -0,0 +1,14 @@
import { DivIcon, divIcon } from 'leaflet';
export const clusterIcon = (cluster): DivIcon => 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>
`
});