Tabnine Logo
PolygonOptions.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
com.google.android.gms.maps.model.PolygonOptions

Best Java code snippets using com.google.android.gms.maps.model.PolygonOptions.add (Showing top 9 results out of 315)

origin: airbnb/AirMapView

public Builder<T> add(LatLng point) {
 this.polygonOptions.add(point);
 return this;
}
origin: airbnb/AirMapView

public Builder<T> add(LatLng... points) {
 this.polygonOptions.add(points);
 return this;
}
origin: commonsguy/cw-omnibus

new PolygonOptions().add(new LatLng(40.748429, -73.984573),
             new LatLng(40.753393, -73.996311),
             new LatLng(40.758393, -73.992705),
origin: mg6maciej/android-maps-extensions

public PolygonOptions add(LatLng point) {
  real.add(point);
  return this;
}
origin: mg6maciej/android-maps-extensions

public PolygonOptions add(LatLng... points) {
  real.add(points);
  return this;
}
origin: googlemaps/android-samples

/**
 * Add a Polyline and a Polygon to the map.
 * The Polyline connects Melbourne, Adelaide and Perth. The Polygon is located in the Northern
 * Territory (Australia).
 */
private void addPolyObjects() {
  mMap.addPolyline((new PolylineOptions())
      .add(MELBOURNE, ADELAIDE, PERTH)
      .color(Color.GREEN)
      .width(5f));
  mMap.addPolygon(new PolygonOptions()
      .add(POLYGON)
      .fillColor(Color.CYAN)
      .strokeColor(Color.BLUE)
      .strokeWidth(5));
}
origin: googlemaps/android-samples

.add(
    new LatLng(DARWIN.latitude + 3, DARWIN.longitude - 3),
    new LatLng(DARWIN.latitude + 3, DARWIN.longitude + 3),
origin: livroandroid/5ed

  protected void testePolygon(GoogleMap map) {
    PolygonOptions p = new PolygonOptions();
    p.add(new LatLng(-23.564391, -46.651717));
    p.add(new LatLng(-23.565391, -46.652717));
    p.add(new LatLng(-23.564282, -46.654337));
    p.add(new LatLng(-23.563114, -46.653283));
//        p.add(new LatLng(-23.564391, -46.651717));
    p.strokeColor(Color.GREEN);
    p.fillColor(Color.RED);
    Polygon polygon = map.addPolygon(p);
    polygon.setFillColor(Color.YELLOW);
  }

origin: bkhezry/ExtraMapUtils

        .strokePattern(getStrokePattern(polygon.getUiOptions().getStrokePattern()))
        .zIndex(polygon.getUiOptions().getzIndex())
        .add(polygon.getPoints())
);
for (LatLng latLng : polygon.getPoints()) {
com.google.android.gms.maps.modelPolygonOptionsadd

Popular methods of PolygonOptions

  • fillColor
  • strokeColor
  • <init>
  • strokeWidth
  • addAll
  • getFillColor
  • getStrokeColor
  • getStrokeWidth
  • addHole
  • zIndex
  • geodesic
  • getZIndex
  • geodesic,
  • getZIndex,
  • isGeodesic,
  • isVisible,
  • visible,
  • clickable,
  • getPoints,
  • isClickable,
  • strokePattern

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • Menu (java.awt)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Permission (java.security)
    Legacy security code; do not use.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now