-
Hi, Thank u very much to all! <MapboxGL.ShapeSource
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
hi, which version of the lib are you on? |
Beta Was this translation helpful? Give feedback.
-
Hi ! @Plat1, I was facing the same issue. The id in your Here is anexemple of a cluster's Feature. {
"geometry": {
"coordinates": [
0.0589439868927,
0.0384530463661
],
"type": "Point"
},
"id": "83",
"properties": {
"cluster": true,
"cluster_id": 83,
"point_count": 2,
"point_count_abbreviated": "2"
},
"type": "Feature"
} |
Beta Was this translation helpful? Give feedback.
Hi ! @Plat1, I was facing the same issue.
The id in your
let cluster_id = e.features[0].id;
is a string. You should uselet cluster_id = e.features[0].properties.cluster_id
instead. Now you'll get a number as required by the method.getClusterLeaves()
.Here is anexemple of a cluster's Feature.