Displaying markers on TGMapView

Display a map and annotate it with one or more static pins (i.e. pins that have a fixed location). The setTitle and setSnippet text is displayed in the callout bubble when the pin is tapped.

Before you can do this, you need a TGMap . Here's how to get one.

// From inside a TGBaseMapFragment or anywhere containing a TGMap
MarkerOptions options = new MarkerOptions();
options.setPosition(new LatLng(34.101558d, -118.340944d));
options.setTitle("Grauman's Chinese Theatre");
options.setSnippet("6925 Hollywood Blvd, Hollywood, CA");

Marker marker = tgMap.addMarker(options);
Check out the Android Reference App to see this example in action.