marcercluster tooltips

This commit is contained in:
muerwre 2019-02-20 11:36:09 +07:00
parent 9d48c479a5
commit f2758843bf
2 changed files with 20 additions and 2 deletions

View file

@ -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" />