Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 12th, 2012  |  syntax: None  |  size: 0.88 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. List<Overlay> mapOverlays = mapView.getOverlays();
  2.      Drawable drawable = this.getResources().getDrawable(resID);
  3.      HelloItemizedOverlay itemizedoverlay = new        HelloItemizedOverlay(drawable,this);
  4.      GeoPoint point = new GeoPoint((int)latd,(int)lond);
  5.      OverlayItem overlayitem = new OverlayItem(point, name, name);
  6.      itemizedoverlay.addOverlay(overlayitem);
  7.      mapOverlays.add(itemizedoverlay);
  8.        
  9. List<Overlay> mapOverlays = mapView.getOverlays();
  10.      mapOverlays.clear() // add this to remove previous
  11.      Drawable drawable = this.getResources().getDrawable(resID);
  12.      HelloItemizedOverlay itemizedoverlay = new        HelloItemizedOverlay(drawable,this);
  13.      GeoPoint point = new GeoPoint((int)latd,(int)lond);
  14.      OverlayItem overlayitem = new OverlayItem(point, name, name);
  15.      itemizedoverlay.addOverlay(overlayitem);
  16.      mapOverlays.add(itemizedoverlay);