Add the map function. Now we can send ajax request to the server and get
the photo data and then show them on the map.