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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user