This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] #352 - update gyp with new C++ files, added feature concept…
… for Android binding, removed Multipoint inheritance issue
- Loading branch information
Showing
10 changed files
with
165 additions
and
20 deletions.
There are no files selected for viewing
46 changes: 45 additions & 1 deletion
46
...android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,49 @@ | ||
package com.mapbox.mapboxsdk.annotations; | ||
|
||
public class MultiPoint extends PointCollectionShape { | ||
import com.mapbox.mapboxsdk.geometry.LatLng; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class MultiPoint extends Shape { | ||
|
||
private List<LatLng> points; | ||
private float alpha = 1.0f; | ||
|
||
protected MultiPoint() { | ||
super(); | ||
points = new ArrayList<>(); | ||
} | ||
|
||
/** | ||
* Returns a copy of the points. | ||
* | ||
* @return points - as a copy | ||
*/ | ||
public List<LatLng> getPoints() { | ||
return new ArrayList<>(points); | ||
} | ||
|
||
/** | ||
* Sets the points of this polyline. This method will take a copy | ||
* of the points, so further mutations to points will have no effect | ||
* on this polyline. | ||
* | ||
* @param points the points of the polyline | ||
*/ | ||
void setPoints(List<LatLng> points) { | ||
this.points = new ArrayList<>(points); | ||
} | ||
|
||
void addPoint(LatLng point) { | ||
points.add(point); | ||
} | ||
|
||
public float getAlpha() { | ||
return alpha; | ||
} | ||
|
||
void setAlpha(float alpha) { | ||
this.alpha = alpha; | ||
} | ||
} |
9 changes: 7 additions & 2 deletions
9
...droid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPolygon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...apboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPolygonFeature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters