public Builder<T> add(LatLng point) { this.polygonOptions.add(point); return this; }
public Builder<T> add(LatLng... points) { this.polygonOptions.add(points); return this; }
new PolygonOptions().add(new LatLng(40.748429, -73.984573), new LatLng(40.753393, -73.996311), new LatLng(40.758393, -73.992705),
public PolygonOptions add(LatLng point) { real.add(point); return this; }
public PolygonOptions add(LatLng... points) { real.add(points); return this; }
/** * 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)); }
.add( new LatLng(DARWIN.latitude + 3, DARWIN.longitude - 3), new LatLng(DARWIN.latitude + 3, DARWIN.longitude + 3),
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); }
.strokePattern(getStrokePattern(polygon.getUiOptions().getStrokePattern())) .zIndex(polygon.getUiOptions().getzIndex()) .add(polygon.getPoints()) ); for (LatLng latLng : polygon.getPoints()) {