Skip to content

Commit

Permalink
fix: use total in createMarker loop
Browse files Browse the repository at this point in the history
The `const total = 100;` is an unused variable
and can be removed or used in the `createMarker`
loop.
  • Loading branch information
treckstar committed Jul 31, 2024
1 parent 6c7cead commit 13a8a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/advanced-markers-animation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

// Create 100 markers to animate.
google.maps.event.addListenerOnce(map, 'idle', () => {
for (let i = 0; i < 100; i++) {
for (let i = 0; i < total; i++) {
createMarker(map, AdvancedMarkerElement);
}
});
Expand Down Expand Up @@ -106,4 +106,4 @@

initMap();
// [END maps_advanced_markers_animation]
export { };
export { };

0 comments on commit 13a8a24

Please sign in to comment.