Skip to content

Instantly share code, notes, and snippets.

@quentin23soleil
Created June 11, 2013 12:16
Show Gist options
  • Save quentin23soleil/5756370 to your computer and use it in GitHub Desktop.
Save quentin23soleil/5756370 to your computer and use it in GitHub Desktop.
switch (point.getKind()) {
case 5: //theatre
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_theatre));
break;
case 39: //concert
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_concert));
break;
case 59: //clubbing
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_clubbing));
break;
case 67: //expo
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_expo));
break;
case 90: //danse et opera
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_danse));
break;
case 99: //Foire et salon
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_salonsfoires));
break;
case 500: //enfants
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_enfant));
break;
case 227: //cine
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_cine));
break;
case 0: //default
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin));
break;
default:
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin));
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment