SHARE
TWEET

Untitled

a guest Nov 12th, 2012 26 Never
  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);
RAW Paste Data
Top