public class Marker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
com.tplmaps3d.Icon |
getIcon() |
long |
getId() |
int |
getOrder() |
LngLat |
getPosition() |
java.lang.Object |
getProperties() |
float |
getRotation() |
java.lang.String |
getTitle() |
void |
hideInfoWindow() |
boolean |
isFlat() |
boolean |
isInfoWindowShown() |
boolean |
isVisible() |
void |
remove() |
void |
setAnchor(java.lang.String anchor) |
void |
setDescription(java.lang.String description)
Set description of marker that will be shown in default info window.
|
void |
setFlat(boolean flat) |
void |
setIcon(com.tplmaps3d.Icon icon)
Set marker background.
|
void |
setInfoWindowOffset(android.graphics.Point infoWindowOffset)
Set info window offset.
|
void |
setOrder(int order)
Set order of marker with respect to other markers on the mapview.
|
void |
setPosition(LngLat position) |
void |
setPositionEased(LngLat position,
float duration) |
void |
setProperties(java.lang.Object properties) |
void |
setRotation(float rotation)
Set rotation of the marker
|
void |
setTitle(java.lang.String title)
Set title of marker that will be shown in default info window.
|
void |
setVisible(boolean visible) |
void |
showInfoWindow()
Show info window of the marker, custom info window will be shown if set, else
shows default info window if marker title or description is set.
|
public void remove()
public long getId()
public void setPosition(@NonNull LngLat position)
position
- lnglat point on which marker would be placedpublic void setPositionEased(@NonNull LngLat position, float duration)
position
- lnglat point on which marker would be placedduration
- animate duration in secondspublic LngLat getPosition()
public void setIcon(@Nullable com.tplmaps3d.Icon icon)
icon
- pass Icon
object via IconFactory
public com.tplmaps3d.Icon getIcon()
public void setOrder(int order)
order
- draw orderpublic int getOrder()
public void setTitle(@Nullable java.lang.String title)
title
- set info window title stringpublic java.lang.String getTitle()
public void setDescription(@Nullable java.lang.String description)
description
- set info window title descriptionpublic java.lang.String getDescription()
public void setVisible(boolean visible)
public boolean isVisible()
public void setInfoWindowOffset(android.graphics.Point infoWindowOffset)
infoWindowOffset
- x and y coordinates.public void showInfoWindow()
public void hideInfoWindow()
public boolean isInfoWindowShown()
public void setFlat(boolean flat)
public boolean isFlat()
public void setRotation(float rotation)
rotation
- rotation in degreepublic float getRotation()
public void setAnchor(java.lang.String anchor)
public java.lang.Object getProperties()
public void setProperties(java.lang.Object properties)