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

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

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

origin: googlemaps/android-maps-utils

/**
 * Adds a DataPolygon to the map as a Polygon
 *
 * @param polygonOptions
 * @param polygon      contains coordinates for the Polygon
 * @return Polygon object created from given DataPolygon
 */
protected Polygon addPolygonToMap(PolygonOptions polygonOptions, DataPolygon polygon) {
  // First array of coordinates are the outline
  polygonOptions.addAll(polygon.getOuterBoundaryCoordinates());
  // Following arrays are holes
  List<List<LatLng>> innerBoundaries = polygon.getInnerBoundaryCoordinates();
  for (List<LatLng> innerBoundary : innerBoundaries) {
    polygonOptions.addHole(innerBoundary);
  }
  Polygon addedPolygon = mMap.addPolygon(polygonOptions);
  addedPolygon.setClickable(polygonOptions.isClickable());
  return addedPolygon;
}
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: mg6maciej/android-maps-extensions

public boolean isClickable() {
  return real.isClickable();
}
com.google.android.gms.maps.modelPolygonOptionsisClickable

Popular methods of PolygonOptions

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

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
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