diff --git a/samples/advanced-markers-animation/index.ts b/samples/advanced-markers-animation/index.ts index c11f3b5609..1c29225e71 100644 --- a/samples/advanced-markers-animation/index.ts +++ b/samples/advanced-markers-animation/index.ts @@ -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); } }); @@ -106,4 +106,4 @@ initMap(); // [END maps_advanced_markers_animation] -export { }; \ No newline at end of file +export { };