Search in sources :

Example 16 with PolygonOptions

use of com.google.android.gms.maps.model.PolygonOptions in project wigle-wifi-wardriving by wiglenet.

the class GeoJsonPolygonStyle method toPolygonOptions.

/**
 * Gets a new PolygonOptions object containing styles for the GeoJsonPolygon
 *
 * @return new PolygonOptions object
 */
public PolygonOptions toPolygonOptions() {
    PolygonOptions polygonOptions = new PolygonOptions();
    polygonOptions.fillColor(mPolygonOptions.getFillColor());
    polygonOptions.geodesic(mPolygonOptions.isGeodesic());
    polygonOptions.strokeColor(mPolygonOptions.getStrokeColor());
    polygonOptions.strokeWidth(mPolygonOptions.getStrokeWidth());
    polygonOptions.visible(mPolygonOptions.isVisible());
    polygonOptions.zIndex(mPolygonOptions.getZIndex());
    return polygonOptions;
}
Also used : PolygonOptions(com.google.android.gms.maps.model.PolygonOptions)

Aggregations

PolygonOptions (com.google.android.gms.maps.model.PolygonOptions)16 LatLng (com.google.android.gms.maps.model.LatLng)8 PolylineOptions (com.google.android.gms.maps.model.PolylineOptions)6 Polygon (com.google.android.gms.maps.model.Polygon)4 GoogleMap (com.google.android.gms.maps.GoogleMap)3 MarkerOptions (com.google.android.gms.maps.model.MarkerOptions)3 CameraUpdate (com.google.android.gms.maps.CameraUpdate)2 Polyline (com.google.android.gms.maps.model.Polyline)2 Intent (android.content.Intent)1 View (android.view.View)1 ImageButton (android.widget.ImageButton)1 BitmapDescriptor (com.google.android.gms.maps.model.BitmapDescriptor)1 CircleOptions (com.google.android.gms.maps.model.CircleOptions)1 GroundOverlayOptions (com.google.android.gms.maps.model.GroundOverlayOptions)1 Marker (com.google.android.gms.maps.model.Marker)1 GeoJsonLineString (com.google.maps.android.data.geojson.GeoJsonLineString)1 GeoJsonMultiLineString (com.google.maps.android.data.geojson.GeoJsonMultiLineString)1 GeoJsonMultiPolygon (com.google.maps.android.data.geojson.GeoJsonMultiPolygon)1 GeoJsonPolygon (com.google.maps.android.data.geojson.GeoJsonPolygon)1 ArrayList (java.util.ArrayList)1