Code example for Marker

Methods: setTitle

0
    } 
 
    public void setMarker(Marker marker) {
        this.marker = marker;
        // We'll set marker settings here.. 
        marker.setTitle(screenName);
    } 
 
    /** 
     * Removes old polyline and makes another and adds it to the provided map. 
     * This is the only way to edit it. 
     * MUST BE CALLED FROM UI THREAD! 
     * @param map Map to add polyline to. 
     */ 
    public void makePolyline(GoogleMap map) {
        removePolyline(); 
        polyline = map.addPolyline(polylineOptions);
    } 
 
    /** 
     * Updates the marker to use last position and timestamp