We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a71b5e3 + a6e4849 commit 1df2980Copy full SHA for 1df2980
markers-update-position-with-animation/demo.js
@@ -79,7 +79,7 @@ function createMarkers() {
79
ease(
80
marker.getGeometry(),
81
randomPoint,
82
- 40000,
+ 4000,
83
function(coord) {
84
marker.setGeometry(coord);
85
}
@@ -103,7 +103,7 @@ function ease(
103
onStep = console.log,
104
onComplete = function() {},
105
) {
106
- var raf = window.requestAnimationFrame || function(f) {window.setTimeout(f, 16)};
+ var raf = window.requestAnimationFrame || function(f) {window.setTimeout(f, 16)},
107
stepCount = durationMs / 16,
108
valueIncrementLat = (endCoord.lat - startCoord.lat) / stepCount,
109
valueIncrementLng = (endCoord.lng - startCoord.lng) / stepCount,
0 commit comments