{"action":"closed","issue":{"url":"https://api.github.com/repos/UlisesGascon/curso-js-web-developers-112015/issues/10","labels_url":"https://api.github.com/repos/UlisesGascon/curso-js-web-developers-112015/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/UlisesGascon/curso-js-web-developers-112015/issues/10/comments","events_url":"https://api.github.com/repos/UlisesGascon/curso-js-web-developers-112015/issues/10/events","html_url":"https://github.com/UlisesGascon/curso-js-web-developers-112015/issues/10","id":120576982,"number":10,"title":"Callback con petición ajax","user":{"login":"davidfisher24","id":15199868,"avatar_url":"https://avatars.githubusercontent.com/u/15199868?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfisher24","html_url":"https://github.com/davidfisher24","followers_url":"https://api.github.com/users/davidfisher24/followers","following_url":"https://api.github.com/users/davidfisher24/following{/other_user}","gists_url":"https://api.github.com/users/davidfisher24/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfisher24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfisher24/subscriptions","organizations_url":"https://api.github.com/users/davidfisher24/orgs","repos_url":"https://api.github.com/users/davidfisher24/repos","events_url":"https://api.github.com/users/davidfisher24/events{/privacy}","received_events_url":"https://api.github.com/users/davidfisher24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UlisesGascon/curso-js-web-developers-112015/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/UlisesGascon/curso-js-web-developers-112015/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-05T18:08:38Z","updated_at":"2015-12-14T13:23:58Z","closed_at":"2015-12-14T13:23:58Z","body":"He subido la mapa de las estaciones de bicing (he usado lo de Barcelona). Pregunta por que tengo que admitir que no tengo dominado el uso de callbacks. \r\nHe sacado los datos de bicing con una peticion ajax, he empujado los datos en un array, y he usado el array para posicionar los markers con longitud y latitud. \r\nLa unica manera que lo he conseguido era usar un window.settimeout, por que la funcion para anadir los markers ejecuta antes del termino de la petición. Imagino que tengo que usar un callback en la peticion ajax pero ni idea hacerlo."}}