T
T
TechNOIR2018-02-05 21:13:29
OpenStreetMap
TechNOIR, 2018-02-05 21:13:29

leaflet. How to replace the sum of markers in a cluster with the sum of values ​​in these markers?

Good afternoon.
Fellow Leaflet experts, a question for you)
In this example, the
Cluster shows the number of markers in the cluster
5a789e7f14391169751416.png
Each marker has a numerical value:
5a789e984f8a2790655276.png
Let's say there are 2 markers in the cluster with the numbers 100 and 200. How to finally make it show not the number of markers, but the sum of the values ​​of these markers?
thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-02-05
@freeExec

Rewrite icon code
https://github.com/Leaflet/Leaflet.markercluster/b...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question