public static mil.nga.geopackage.map.geom.MultiPolygon addPolygonsToMap(
            GoogleMap map, MultiPolygonOptions polygons) {
        mil.nga.geopackage.map.geom.MultiPolygon multiPolygon = new mil.nga.geopackage.map.geom.MultiPolygon();
        for (PolygonOptions polygonOption : polygons.getPolygonOptions()) {
            if (polygons.getOptions() != null) {
                polygonOption.fillColor(polygons.getOptions().getFillColor());
                polygonOption.strokeColor(polygons.getOptions()
                        .getStrokeColor());
                polygonOption.geodesic(polygons.getOptions().isGeodesic());
                polygonOption.visible(polygons.getOptions().isVisible());
                polygonOption.zIndex(polygons.getOptions().getZIndex());
                polygonOption.strokeWidth(polygons.getOptions().getStrokeWidth());
            }
            com.google.android.gms.maps.model.Polygon polygon = addPolygonToMap(
                    map, polygonOption);
            multiPolygon.add(polygon);
        }
        return multiPolygon;
    }
public static mil . nga . geopackage . map . geom . MultiPolygon addPolygonsToMap ( GoogleMap map , MultiPolygonOptions polygons ) { mil . nga . geopackage . map . geom . MultiPolygon multiPolygon = new mil . nga . geopackage . map . geom . MultiPolygon ( ) ; for ( PolygonOptions polygonOption : polygons . getPolygonOptions ( ) ) { if ( polygons . getOptions ( ) != null ) { polygonOption . fillColor ( polygons . getOptions ( ) . getFillColor ( ) ) ; polygonOption . strokeColor ( polygons . getOptions ( ) . getStrokeColor ( ) ) ; polygonOption . geodesic ( polygons . getOptions ( ) . isGeodesic ( ) ) ; polygonOption . visible ( polygons . getOptions ( ) . isVisible ( ) ) ; polygonOption . zIndex ( polygons . getOptions ( ) . getZIndex ( ) ) ; polygonOption . strokeWidth ( polygons . getOptions ( ) . getStrokeWidth ( ) ) ; } com . google . android . gms . maps . model . Polygon polygon = addPolygonToMap ( map , polygonOption ) ; multiPolygon . add ( polygon ) ; } return multiPolygon ; }
Add a list of Polygons to the map

@param map      google map
@param polygons multi polygon options
@return multi polygon