[android] renames MultiPoint to BasePointCollection
This commit is contained in:
@@ -8,12 +8,12 @@ import java.util.List;
|
||||
/**
|
||||
* Multipoint is an abstract annotation for combining geographical locations.
|
||||
*/
|
||||
public abstract class MultiPoint extends Annotation {
|
||||
public abstract class BasePointCollection extends Annotation {
|
||||
|
||||
private List<LatLng> points;
|
||||
private float alpha = 1.0f;
|
||||
|
||||
protected MultiPoint() {
|
||||
protected BasePointCollection() {
|
||||
super();
|
||||
points = new ArrayList<>();
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public abstract class MultiPoint extends Annotation {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set this {@link MultiPoint}s alpha.
|
||||
* Set this {@link BasePointCollection}s alpha.
|
||||
*
|
||||
* @param alpha float value between 0 and 1.
|
||||
*/
|
||||
@@ -7,7 +7,7 @@ import com.mapbox.mapboxsdk.maps.MapboxMap;
|
||||
/**
|
||||
* Polygon is a geometry annotation that's a closed loop of coordinates.
|
||||
*/
|
||||
public final class Polygon extends MultiPoint {
|
||||
public final class Polygon extends BasePointCollection {
|
||||
|
||||
private int fillColor = Color.BLACK; // default fillColor is black
|
||||
private int strokeColor = Color.BLACK; // default strokeColor is black
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.mapbox.mapboxsdk.maps.MapboxMap;
|
||||
/**
|
||||
* Polyline is a geometry feature with an unclosed list of coordinates drawn as a line
|
||||
*/
|
||||
public final class Polyline extends MultiPoint {
|
||||
public final class Polyline extends BasePointCollection {
|
||||
|
||||
private int color = Color.BLACK; // default color is black
|
||||
private float width = 10; // As specified by Google API Docs (in pixels)
|
||||
|
||||
Reference in New Issue
Block a user