Exemplo n.º 1
0
 private void showEvent(String eventId) {
   Event e = MainModel.getEvent(eventId);
   LatLng pos =
       new LatLng(
           e.getLat() + Math.random() / MARKER_FUDGE_DENOM,
           e.getLng() + Math.random() / MARKER_FUDGE_DENOM);
   String description = e.getDescription();
   float event_color =
       (description_hues.containsKey(description))
           ? description_hues.get(description)
           : DEFAULT_MARKER_COLOR;
   mMap.addMarker(
       new MarkerOptions()
           .position(pos)
           .snippet(eventId)
           .icon(BitmapDescriptorFactory.defaultMarker(event_color)));
 }