Code example for GoogleMap

Methods: addMarker, addPolyline, clear

0
	 * @see android.widget.AdapterView.OnItemSelectedListener#onItemSelected(android.widget.AdapterView, android.view.View, int, long) 
	 */ 
	@Override 
	public void onItemSelected(AdapterView<?> arg0, View v, int pos,
			long arg3) {
		map.clear(); 	//clear current markers
		Log.i("cdc", "View = " + v + " pos = " + pos);
		String selBlurb = destinations.get(pos).getBlurb();
		Log.i("cdc", "selected = "+destinations.get(pos)+ ", selBlurb = "+selBlurb);
		blurb.setText(selBlurb);
		map.addMarker(getEntranceMarker(pos));
		map.addMarker(getStartMarker(curr_location));
		map.addPolyline(getPolyline(curr_location,destinations.get(pos).getEntrance()));
 
 
	} 
 
	/* (non-Javadoc) 
	 * @see android.widget.AdapterView.OnItemSelectedListener#onNothingSelected(android.widget.AdapterView) 
	 */ 
	@Override