Hey @titouanmathis, is there any reason why you don't allow for a custom id and auto generate ones with add an incremental index, for the 4 components included in a cluster (source, clusters layer, cluster-point layer unclustered layer)?
|
const id = ref(`mb-cluster-${index}`); |
|
index += 1; |
|
|
|
const getId = (suffix) => `${unref(id)}-${suffix}`; |
I've noticed some issues when sometimes (haven't figured out when), the index ends up different from 0. Would it be possible to add a prop so that one can set a specific prefix? I can help with a PR if that can help.
Hey @titouanmathis, is there any reason why you don't allow for a custom id and auto generate ones with add an incremental index, for the 4 components included in a cluster (source, clusters layer, cluster-point layer unclustered layer)?
vue-mapbox-gl/packages/vue-mapbox-gl/components/MapboxCluster.vue
Lines 136 to 139 in 24bfc55
I've noticed some issues when sometimes (haven't figured out when), the index ends up different from 0. Would it be possible to add a
propso that one can set a specific prefix? I can help with a PR if that can help.