Skip to content

Instantly share code, notes, and snippets.

@Klerith
Last active November 20, 2019 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Klerith/477c32a5bd41797d131ac63a2bb1c9c7 to your computer and use it in GitHub Desktop.
Save Klerith/477c32a5bd41797d131ac63a2bb1c9c7 to your computer and use it in GitHub Desktop.
Lugares específicos para el curso de Sockets con Angular
lugares: Lugar[] = [{
id: '1',
nombre: 'Fernando',
lng: -75.75512993582937,
lat: 45.349977429009954,
color: '#dd8fee'
},
{
id: '2',
nombre: 'Amy',
lng: -75.75195645527508,
lat: 45.351584045823756,
color: '#790af0'
},
{
id: '3',
nombre: 'Orlando',
lng: -75.75900589557777,
lat: 45.34794635758547,
color: '#19884b'
}];
Algonquin College
lng -75.75512993582937
lat 45.349977429009954
// Función para generar un color HEX random
'#' + Math.floor(Math.random()*16777215).toString(16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment