Skip to main content

Marker

Marker

Type: public class

A class that defines a map marker

Marker(@NonNull Coordinates coordinates, @NonNull String image)

Type: public

Create a Wemap Marker

Parameter NameTypeDescription
coordinates@NonNullthe coordinates of the marker
image@NonNullthe image of the marker

Marker(@NonNull Coordinates coordinates, @NonNull String image, @Nullable String label)

Type: public

Create a Wemap Marker

Parameter NameTypeDescription
coordinates@NonNullthe coordinates of the marker
image@NonNullthe image of the marker
label@Nullablethe label of the marker

Marker(@NonNull Coordinates coordinates, @NonNull String image, @Nullable String label, @Nullable String anchor)

Type: public

Create a Wemap Marker

Parameter NameTypeDescription
coordinates@NonNullthe coordinates of the marker
image@NonNullthe image of the marker
label@Nullablethe label of the marker
anchor@Nullablethe anchor of the marker (top, bottom, left, right, top-left, top-right, bottom-left or bottom-right)

Marker(@Nullable String id, @NonNull Coordinates coordinates, @NonNull String image, @Nullable String label, @Nullable String anchor)

Type: public

Create a Wemap Marker

Parameter NameTypeDescription
id@Nullablethe unique marker id
coordinates@NonNullthe coordinates of the marker
image@NonNullthe image of the marker
label@Nullablethe label of the marker
anchor@Nullablethe anchor of the marker (top, bottom, left, right, top-left, top-right, bottom-left or bottom-right)