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

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

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

origin: googlemaps/android-maps-utils

/**
 * Sets the stroke width of the Polygon in screen pixels
 *
 * @param strokeWidth stroke width value of the Polygon
 */
public void setPolygonStrokeWidth(float strokeWidth) {
  mPolygonOptions.strokeWidth(strokeWidth);
}
origin: airbnb/AirMapView

public Builder<T> strokeWidth(float width) {
 this.polygonOptions.strokeWidth(width);
 return this;
}
origin: airbnb/AirMapView

public Builder() {
 polygonOptions.strokeWidth(STROKE_WIDTH);
 polygonOptions.strokeColor(STROKE_COLOR);
}
origin: googlemaps/android-maps-utils

/**
 *Creates a new PolygonOption from given properties of an existing PolygonOption
 * @param originalPolygonOption An existing PolygonOption instance
 * @param isFill Whether the fill for a polygon is set
 * @param isOutline Whether the outline for a polygon is set
 * @return  A new PolygonOption
 */
private static PolygonOptions createPolygonOptions (PolygonOptions originalPolygonOption,
    boolean isFill, boolean isOutline) {
  PolygonOptions polygonOptions = new PolygonOptions();
  if (isFill) {
    polygonOptions.fillColor(originalPolygonOption.getFillColor());
  }
  if (isOutline) {
    polygonOptions.strokeColor(originalPolygonOption.getStrokeColor());
    polygonOptions.strokeWidth(originalPolygonOption.getStrokeWidth());
  }
  return polygonOptions;
}
origin: googlemaps/android-maps-utils

/**
 * 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());
  polygonOptions.clickable(mPolygonOptions.isClickable());
  return polygonOptions;
}
origin: googlemaps/android-maps-utils

.fillColor(Color.BLUE - ALPHA_ADJUSTMENT)
.strokeColor(Color.BLUE)
.strokeWidth(5));
.fillColor(Color.YELLOW - ALPHA_ADJUSTMENT)
.strokeColor(Color.YELLOW)
.strokeWidth(5));
.fillColor(Color.BLUE - ALPHA_ADJUSTMENT)
.strokeColor(Color.BLUE)
.strokeWidth(5));
.fillColor(Color.YELLOW - ALPHA_ADJUSTMENT)
.strokeColor(Color.YELLOW)
.strokeWidth(5));
origin: googlemaps/android-maps-utils

/**
 * Sets the inline polygon style by copying over the styles that have been set
 *
 * @param polygonOptions polygon options object to add inline styles to
 * @param inlineStyle    inline styles to apply
 */
private void setInlinePolygonStyle(PolygonOptions polygonOptions, KmlStyle inlineStyle) {
  PolygonOptions inlinePolygonOptions = inlineStyle.getPolygonOptions();
  if (inlineStyle.hasFill() && inlineStyle.isStyleSet("fillColor")) {
    polygonOptions.fillColor(inlinePolygonOptions.getFillColor());
  }
  if (inlineStyle.hasOutline()) {
    if (inlineStyle.isStyleSet("outlineColor")) {
      polygonOptions.strokeColor(inlinePolygonOptions.getStrokeColor());
    }
    if (inlineStyle.isStyleSet("width")) {
      polygonOptions.strokeWidth(inlinePolygonOptions.getStrokeWidth());
    }
  }
  if (inlineStyle.isPolyRandomColorMode()) {
    polygonOptions.fillColor(KmlStyle.computeRandomColor(inlinePolygonOptions.getFillColor()));
  }
}
origin: googlemaps/android-samples

.fillColor(fillColorArgb)
.strokeColor(strokeColorArgb)
.strokeWidth(mStrokeWidthBar.getProgress())
.clickable(mClickabilityCheckbox.isChecked()));
origin: mg6maciej/android-maps-extensions

public PolygonOptions strokeWidth(float width) {
  real.strokeWidth(width);
  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: wiglenet/wigle-wifi-wardriving

/**
 * Sets the line width for a Polyline and a Polygon
 *
 * @param width Line width for a Polyline and a Polygon
 */
/* package */ void setWidth(Float width) {
  mPolylineOptions.width(width);
  mPolygonOptions.strokeWidth(width);
  mStylesSet.add("width");
}
origin: wiglenet/wigle-wifi-wardriving

/**
 * Sets the stroke width of the GeoJsonPolygon in screen pixels
 *
 * @param strokeWidth stroke width value of the GeoJsonPolygon
 */
public void setStrokeWidth(float strokeWidth) {
  mPolygonOptions.strokeWidth(strokeWidth);
  styleChanged();
}
origin: j4velin/MapsMeasure

  area = SphericalUtil.computeArea(trace);
  areaOverlay = mMap.addPolygon(
      new PolygonOptions().addAll(trace).strokeWidth(0).fillColor(COLOR_POINT));
} else {
  area = 0;
origin: wiglenet/wigle-wifi-wardriving

/**
 *Creates a new PolygonOption from given properties of an existing PolygonOption
 * @param originalPolygonOption An existing PolygonOption instance
 * @param isFill Whether the fill for a polygon is set
 * @param isOutline Whether the outline for a polygon is set
 * @return  A new PolygonOption
 */
private static PolygonOptions createPolygonOptions (PolygonOptions originalPolygonOption,
    boolean isFill, boolean isOutline) {
  PolygonOptions polygonOptions = new PolygonOptions();
  if (isFill) {
    polygonOptions.fillColor(originalPolygonOption.getFillColor());
  }
  if (isOutline) {
    polygonOptions.strokeColor(originalPolygonOption.getStrokeColor());
    polygonOptions.strokeWidth(originalPolygonOption.getStrokeWidth());
  }
  return polygonOptions;
}
origin: bkhezry/MapDrawingTools

private void drawPolygon(List<LatLng> latLngList) {
 if (polygon != null) {
  polygon.remove();
 }
 PolygonOptions polygonOptions = new PolygonOptions();
 polygonOptions.fillColor(drawingOption.getFillColor());
 polygonOptions.strokeColor(drawingOption.getStrokeColor());
 polygonOptions.strokeWidth(drawingOption.getStrokeWidth());
 polygonOptions.addAll(latLngList);
 polygon = mMap.addPolygon(polygonOptions);
}
origin: car2go/AnyMaps

@Override
public com.google.android.gms.maps.model.PolygonOptions map(PolygonOptions input) {
  List<LatLng> points = AnyMapAdapter.adaptList(com.car2go.maps.model.LatLng.class, input.getPoints());
  return new com.google.android.gms.maps.model.PolygonOptions()
      .fillColor(input.getFillColor())
      .strokeColor(input.getStrokeColor())
      .strokeWidth(input.getStrokeWidth())
      .addAll(points);
}
origin: wiglenet/wigle-wifi-wardriving

/**
 * 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;
}
origin: wiglenet/wigle-wifi-wardriving

/**
 * Sets the inline polygon style by copying over the styles that have been set
 *
 * @param polygonOptions polygon options object to add inline styles to
 * @param inlineStyle    inline styles to apply
 */
private void setInlinePolygonStyle(PolygonOptions polygonOptions, KmlStyle inlineStyle) {
  PolygonOptions inlinePolygonOptions = inlineStyle.getPolygonOptions();
  if (inlineStyle.hasFill() && inlineStyle.isStyleSet("fillColor")) {
    polygonOptions.fillColor(inlinePolygonOptions.getFillColor());
  }
  if (inlineStyle.hasOutline()) {
    if (inlineStyle.isStyleSet("outlineColor")) {
      polygonOptions.strokeColor(inlinePolygonOptions.getStrokeColor());
    }
    if (inlineStyle.isStyleSet("width")) {
      polygonOptions.strokeWidth(inlinePolygonOptions.getStrokeWidth());
    }
  }
  if (inlineStyle.isPolyRandomColorMode()) {
    polygonOptions.fillColor(KmlStyle.computeRandomColor(inlinePolygonOptions.getFillColor()));
  }
}
origin: bkhezry/ExtraMapUtils

.fillColor(polygon.getFillColor())
.strokeColor(polygon.getUiOptions().getColor())
.strokeWidth(polygon.getUiOptions().getWidth())
.strokePattern(getStrokePattern(polygon.getUiOptions().getStrokePattern()))
.zIndex(polygon.getUiOptions().getzIndex())
com.google.android.gms.maps.modelPolygonOptionsstrokeWidth

Popular methods of PolygonOptions

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

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • CodeWhisperer alternatives
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