Skip to content

Commit 4fe4183

Browse files
authored
use total in createMarker loop
The `const total = 100;` is an unused variable and can be removed or used in the `createMarker` loop.
1 parent 6c7cead commit 4fe4183

File tree

1 file changed

+2
-2
lines changed
  • samples/advanced-markers-animation

1 file changed

+2
-2
lines changed

samples/advanced-markers-animation/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
// Create 100 markers to animate.
6060
google.maps.event.addListenerOnce(map, 'idle', () => {
61-
for (let i = 0; i < 100; i++) {
61+
for (let i = 0; i < total; i++) {
6262
createMarker(map, AdvancedMarkerElement);
6363
}
6464
});
@@ -106,4 +106,4 @@
106106

107107
initMap();
108108
// [END maps_advanced_markers_animation]
109-
export { };
109+
export { };

0 commit comments

Comments
 (0)