Skip to content

Commit

Permalink
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 authored Jul 31, 2024
1 parent 6c7cead commit 4fe4183
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 4fe4183

Please sign in to comment.