public final class Point extends Geometry<Point,PointStyle>
Point feature. The Point draws a filled circle at given point. Usage example:
PointStyle style = new PointStyle().setSize(30, 30).setColor("red").setOutline("30px");
Point point = new Point(this, "My Point").setStyle(style).setCoordinate(coordinate);
MapController.putFeature(point);
Copyright (c) 2017 Nexusgeographics All rights reserved.MapController
,
PointStyle
,
Feature
,
Geometry
Constructor and Description |
---|
Point(android.content.Context context)
Instantiates a new Point.
|
Point(android.content.Context context,
java.lang.String name)
Instantiates a new Point with name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
LatLng |
getCoordinate()
Gets lng lat.
|
int |
hashCode() |
Point |
setCoordinate(LatLng coordinate)
Sets coordinates and update Marker
|
Point |
setCoordinate(LatLng coordinate,
int duration)
Sets coordinates and update Marker with animation
|
java.lang.String |
toString() |
getStyle, setStyle
compareTo, getContext, getId, getInfo, getName, isCreated, remove, setInfo
addObserver, removeObserver
public Point(@NonNull android.content.Context context)
context
- the contextpublic Point(@NonNull android.content.Context context, @NonNull java.lang.String name)
context
- the contextname
- the feature namepublic Point setCoordinate(@NonNull LatLng coordinate)
coordinate
- the lng latpublic Point setCoordinate(@NonNull LatLng coordinate, int duration)
coordinate
- Coordinatesduration
- duration in miliseconspublic LatLng getCoordinate()
public java.lang.String toString()
toString
in class Geometry<Point,PointStyle>
public boolean equals(java.lang.Object o)
equals
in class Geometry<Point,PointStyle>
public int hashCode()
hashCode
in class Geometry<Point,PointStyle>