diff options
author | Cameron Mace <cameron@mapbox.com> | 2016-12-01 08:48:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-01 08:48:25 -0500 |
commit | b1068b432ee17c14ea756b7c48be4c955303de95 (patch) | |
tree | a08c74f5db007a51581db1e3a3ef09adcac10898 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java | |
parent | 5f29c3ba26f84c8aea6f70640c348b32cdf397bf (diff) | |
download | qtlocation-mapboxgl-b1068b432ee17c14ea756b7c48be4c955303de95.tar.gz |
cherry-picked 7013 into master (#7247)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java index 3adeb52ea7..4e56531a7f 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java @@ -19,44 +19,102 @@ public abstract class BaseMarkerOptions<U extends Marker, T extends BaseMarkerOp protected String title; protected Icon icon; + /** + * Set the geographical location of the Marker. + * + * @param position the location to position the {@link Marker}. + * @return the object for which the method was called. + */ public T position(LatLng position) { this.position = position; return getThis(); } + /** + * Set the snippet of the Marker. + * + * @param snippet the snippet of the {@link Marker}. + * @return the object for which the method was called. + */ public T snippet(String snippet) { this.snippet = snippet; return getThis(); } + /** + * Set the title of the Marker. + * + * @param title the title of the {@link Marker}. + * @return the object for which the method was called. + */ public T title(String title) { this.title = title; return getThis(); } + /** + * Set the icon of the Marker. + * + * @param icon the icon of the {@link Marker}. + * @return the object for which the method was called. + */ public T icon(Icon icon) { this.icon = icon; return getThis(); } + /** + * Set the icon of the Marker. + * + * @param icon the icon of the {@link Marker}. + * @return the object for which the method was called. + */ public T setIcon(Icon icon) { return icon(icon); } + /** + * Set the geographical location of the Marker. + * + * @param position the location to position the {@link Marker}. + * @return the object for which the method was called. + */ public T setPosition(LatLng position) { return position(position); } + /** + * Set the snippet of the Marker. + * + * @param snippet the snippet of the {@link Marker}. + * @return the object for which the method was called. + */ public T setSnippet(String snippet) { return snippet(snippet); } + /** + * Set the title of the Marker. + * + * @param title the title of the {@link Marker}. + * @return the object for which the method was called. + */ public T setTitle(String title) { return title(title); } + /** + * Get the instance of the object for which this method was called. + * + * @return the object for which the this method was called. + */ public abstract T getThis(); + /** + * Get the Marker. + * + * @return the Marker created from this builder. + */ public abstract U getMarker(); } |