| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Polygon> |
polygons |
FEATURE_TYPE| Constructor and Description |
|---|
MultiPolygon(com.google.api.services.mapsengine.model.Feature feature)
Converts the provided Feature into a typed MultiPolygon, discarding properties.
|
MultiPolygon(java.util.List<Polygon> polygons)
Creates a MultiPolygon based on the polygons provided
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.mapsengine.model.Feature |
asFeature(java.util.Map<java.lang.String,java.lang.Object> properties)
Returns a Feature that can be used by the Maps Engine API.
|
java.util.List<Polygon> |
getPolygons() |
fromGeoJsonprotected final java.util.List<Polygon> polygons
public MultiPolygon(java.util.List<Polygon> polygons)
polygons - The Polygons to use, in orderpublic MultiPolygon(com.google.api.services.mapsengine.model.Feature feature)
feature - the Feature returned by the APIjava.lang.IllegalArgumentException - when feature is not a multi-polygonpublic com.google.api.services.mapsengine.model.Feature asFeature(java.util.Map<java.lang.String,java.lang.Object> properties)
public java.util.List<Polygon> getPolygons()