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 - Added feature objects for multi variants, added supp…
…ort in jni
- Loading branch information
Showing
5 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.../MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPointFeature.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mapbox.mapboxsdk.annotations; | ||
|
||
import java.util.Map; | ||
|
||
public class MultiPointFeature extends MultiPoint implements Feature { | ||
|
||
private long featureId; | ||
private Map<String, Object> attributes; | ||
|
||
public MultiPointFeature() { | ||
} | ||
|
||
@Override | ||
public long getFeatureId() { | ||
return featureId; | ||
} | ||
|
||
@Override | ||
public Map<String, Object> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
@Override | ||
public Object getAttribute(String key) { | ||
return attributes.get(key); | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mapbox.mapboxsdk.annotations; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class MultiPolygonFeature extends MultiPolygon implements Feature{ | ||
private long featureId; | ||
private Map<String, Object> attributes; | ||
|
||
public MultiPolygonFeature(List<Polygon> polygonList) { | ||
super(polygonList); | ||
} | ||
|
||
@Override | ||
public long getFeatureId() { | ||
return featureId; | ||
} | ||
|
||
@Override | ||
public Map<String, Object> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
@Override | ||
public Object getAttribute(String key) { | ||
return attributes.get(key); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...pboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPolylineFeature.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mapbox.mapboxsdk.annotations; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class MultiPolylineFeature extends MultiPolyline implements Feature { | ||
private long featureId; | ||
private Map<String, Object> attributes; | ||
|
||
public MultiPolylineFeature(List<Polyline> polylineList) { | ||
super(polylineList); | ||
} | ||
|
||
@Override | ||
public long getFeatureId() { | ||
return featureId; | ||
} | ||
|
||
@Override | ||
public Map<String, Object> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
@Override | ||
public Object getAttribute(String key) { | ||
return attributes.get(key); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...oxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/ShapeCollectionFeature.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mapbox.mapboxsdk.annotations; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class ShapeCollectionFeature extends ShapeCollection implements Feature { | ||
private long featureId; | ||
private Map<String, Object> attributes; | ||
|
||
public ShapeCollectionFeature(List<Shape> shapeList) { | ||
super(shapeList); | ||
} | ||
|
||
@Override | ||
public long getFeatureId() { | ||
return featureId; | ||
} | ||
|
||
@Override | ||
public Map<String, Object> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
@Override | ||
public Object getAttribute(String key) { | ||
return attributes.get(key); | ||
} | ||
} |
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