Skip to content

Commit

Permalink
chore: update file published to npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Aug 28, 2024
1 parent efb3604 commit 9f8fcae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"src"
"/dist",
"/src"
],
"engines": {
"node": ">=10"
Expand Down
4 changes: 2 additions & 2 deletions src/uncluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class UnCluster extends EventTarget {
// If selected feature is now part of this new cluster
// We position the Pin marker on it's new position
if ((this.pinMarker && this.selectedClusterId && this.selectedFeatureId) && (id === this.selectedClusterId)) {
const featureIndex = this.clusterLeaves.get(id)!.findIndex(f => f.properties?.id === this.selectedFeatureId)
const featureIndex = this.clusterLeaves.get(id)!.findIndex(f => this.getFeatureId(f) === this.selectedFeatureId)

if (featureIndex > -1) {
// Clear outdated Pin marker
Expand Down Expand Up @@ -264,7 +264,7 @@ export class UnCluster extends EventTarget {

while (!result.done) {
const [clusterId, leaves] = result.value
const featureIndex = leaves.findIndex(f => f.properties?.id === this.selectedFeatureId)
const featureIndex = leaves.findIndex(f => this.getFeatureId(f) === this.selectedFeatureId)

if (featureIndex > -1) {
this.selectedClusterId = clusterId.toString()
Expand Down

0 comments on commit 9f8fcae

Please sign in to comment.