-
-
Save parzibyte/91391af8945d0fb09d5d0634c719f82d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Actualización de ubicación | |
mapa.getView().setCenter(ol.proj.fromLonLat([longitude, latitude])); | |
marcador.getGeometry().setCoordinates(ol.proj.fromLonLat([longitude, latitude])); | |
const fecha = formatearFecha(new Date(ubicacion.timestamp)); | |
const registro = `Última actualización: ${fecha} en ${latitude},${longitude}`; | |
console.log(registro); | |
$estado.textContent = registro; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment