Code example for MarkerOptions

Methods: position, snippet, title

0
        if (list.size() > 0)
            getMap().moveCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 100));
    } 
 
    private Marker addMarker(TagInfo tagInfo) {
        MarkerOptions options = new MarkerOptions();
        options.position(new LatLng(tagInfo.getLatitude(), tagInfo.getLongitude()));
        options.title(tagInfo.getDescription());
        options.snippet(tagInfo.getAddress1());
        return getMap().addMarker(options);
    } 
 
    @Override 
    public void onInfoWindowClick(Marker marker) {
        TagInfo tagInfo = mMarkerDict.get(marker.getId());
        Intent intent = new Intent(getActivity(), DetailsActivity.class);
        intent.putExtra("taginfo", tagInfo);
        startActivityForResult(intent, EDIT_DETAILS_REQUEST);
    } 
 
    @Override