/** * Adds all Geometry objects stored in the GeoJsonGeometryCollection onto the map. * Supports recursive GeometryCollections. * * @param feature contains relevant styling properties for the Geometry inside * the GeoJsonGeometryCollection * @param geoJsonGeometries contains an array of Geometry objects * @return array of Marker, Polyline, Polygons that have been added to the map */ private ArrayList<Object> addGeometryCollectionToMap(GeoJsonFeature feature, List<Geometry> geoJsonGeometries) { ArrayList<Object> geometries = new ArrayList<>(); for (Geometry geometry : geoJsonGeometries) { geometries.add(addGeoJsonFeatureToMap(feature, geometry)); } return geometries; }
mapObject = addKmlPlacemarkToMap((KmlPlacemark) feature, geometry, style, inlineStyle, isPlacemarkVisible); } else { mapObject = addGeoJsonFeatureToMap(feature, feature.getGeometry());