Globe: Add more props settings, Randomly position globe to a continent

- Add a little delay before restarting the rotation when hovering a marker
This commit is contained in:
2020-04-19 16:49:10 +02:00
parent 4fb2c4e93a
commit 302af713d0
4 changed files with 44 additions and 29 deletions

View File

@@ -87,6 +87,15 @@ export const randomString = (length = 6, type = 'A') => {
}
/*
** Get random array item
*/
export const getRandomArrayItem = array => {
const randomIndex = Math.floor(Math.random() * array.length)
return array[randomIndex]
}
/*
** Date related
*/