Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/11/2018, 16:41
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Actualizar marcadores en google map

Sin mal no recuerdo, seria algo así en javascript puro:

Código Javascript:
Ver original
  1. var xmlhttp = new XMLHttpRequest();
  2. xmlhttp.open('GET', 'https://api.myjson.com/bins/ya8qy', true);
  3. xmlhttp.onreadystatechange = function() {
  4.     if (xmlhttp.readyState == 4) {
  5.         if(xmlhttp.status == 200) {
  6.             var obj = JSON.parse(xmlhttp.responseText);
  7.             //en obj estan los datos
  8.          }
  9.     }
  10. };
  11. xmlhttp.send(null);
__________________
[email protected]
HITCEL