Back to project page wristband-android.
The source code is released under:
The Artistic License 2.0 Copyright (c) 2014 Allan Pichardo Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed...
If you think the Android project wristband-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nimo.wristband.fragments; /*ww w . j a v a 2 s . com*/ import android.content.Intent; import android.net.Uri; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener; import com.google.android.gms.maps.MapFragment; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; import com.nimo.wristband.net.Show; public class WristbandMap extends MapFragment{ private Show show; public void setShow(Show show){ this.show = show; centerOnVenue(); } private void centerOnVenue(){ GoogleMap map = getMap(); MarkerOptions marker = new MarkerOptions(); marker.position(show.getLocation()); marker.title(show.getVenueName()); marker.draggable(false); map.addMarker(marker); map.moveCamera(CameraUpdateFactory.newLatLngZoom(show.getLocation(), 15)); } public void setOnMarkerClickListener(OnMarkerClickListener listener){ getMap().setOnMarkerClickListener(listener); } }