Skip to content

Commit a6e4849

Browse files
committed
Fixed example Animated markers
Signed-off-by: Tomas Tobis <[email protected]>
1 parent a71b5e3 commit a6e4849

File tree

1 file changed

+2
-2
lines changed
  • markers-update-position-with-animation

1 file changed

+2
-2
lines changed

markers-update-position-with-animation/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function createMarkers() {
7979
ease(
8080
marker.getGeometry(),
8181
randomPoint,
82-
40000,
82+
4000,
8383
function(coord) {
8484
marker.setGeometry(coord);
8585
}
@@ -103,7 +103,7 @@ function ease(
103103
onStep = console.log,
104104
onComplete = function() {},
105105
) {
106-
var raf = window.requestAnimationFrame || function(f) {window.setTimeout(f, 16)};
106+
var raf = window.requestAnimationFrame || function(f) {window.setTimeout(f, 16)},
107107
stepCount = durationMs / 16,
108108
valueIncrementLat = (endCoord.lat - startCoord.lat) / stepCount,
109109
valueIncrementLng = (endCoord.lng - startCoord.lng) / stepCount,

0 commit comments

Comments
 (0)