Skip to content

Commit

Permalink
【fix】markerlayer addmarker不成功问题
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Jul 17, 2024
1 parent ef26e7b commit 8d617ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/component/src/marker-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export default class MarkerLayer extends EventEmitter {
}
}
this.markers.push(marker);
// if(this.inited) {
// marker.addTo(this.scene);
// }
if (this.inited) {
marker.addTo(this.scene);
}
}

public removeMarker(marker: IMarker) {
Expand Down

0 comments on commit 8d617ed

Please sign in to comment.