title: How to store retrieved data in a Hashmap?
body: <p>I'm retrieving map markers from Firebase successfully, but when I try to store these values in a HashMap, only the last iteration of data is displayed.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>            for (DataSnapshot child : dataSnapshot.getChildren()){
                  Double dLat = haoRetriever.getLat();
                  Double dLong = haoRetriever.getLongitude();
                  bsHaoName = haoRetriever.getName();
                 Marker marker = mMap.addMarker(
                         new MarkerOptions()
                                 .position(new LatLng(dLat, dLong))
                                 .title(bsHaoName)
                                 .icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin)));
                  mMarkers.put("MakerId", marker.getId());
                  mMarkers.put("MarkerTitle", haoRetriever.getName());
                  mMarkers.put("MarkerDescription", haoRetriever.getDescription());
                  mMarkers.put("MarkerLocation", haoRetriever.getLocation());
              }
  </code></pre>
  
  <p>Let's say I have 5 markers being retrieved, only the details of the last marker item that is added to the HashMap.</p>
  
  <p>What I want is a way to retrieve the data and store the most applicable data structure in POJO so that I will be able to iterate over them and determine what was clicked.</p>