Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@ public void setColor(int color) {
mPolylineOptions.color(color);
styleChanged();
}

/**
* Gets the clickability setting for this Options object
*
* @return true if the GeoJsonLineString is clickable; false if it is not
*/
public boolean isClickable() {
return mPolylineOptions.isClickable();
}

/**
* Specifies whether this GeoJsonLineString is clickable
*
* @param clickable - new clickability setting for the GeoJsonLineString
*/
public void setClickable(boolean clickable) {
mPolylineOptions.clickable(clickable);
styleChanged();
}

/**
* Gets whether the GeoJsonLineString is geodesic
Expand Down Expand Up @@ -145,6 +164,7 @@ private void styleChanged() {
public PolylineOptions toPolylineOptions() {
PolylineOptions polylineOptions = new PolylineOptions();
polylineOptions.color(mPolylineOptions.getColor());
polylineOptions.clickable(mPolylineOptions.isClickable());
polylineOptions.geodesic(mPolylineOptions.isGeodesic());
polylineOptions.visible(mPolylineOptions.isVisible());
polylineOptions.width(mPolylineOptions.getWidth());
Expand All @@ -157,6 +177,7 @@ public String toString() {
StringBuilder sb = new StringBuilder("LineStringStyle{");
sb.append("\n geometry type=").append(Arrays.toString(GEOMETRY_TYPE));
sb.append(",\n color=").append(getColor());
sb.append(",\n clickable=").append(isClickable());
sb.append(",\n geodesic=").append(isGeodesic());
sb.append(",\n visible=").append(isVisible());
sb.append(",\n width=").append(getWidth());
Expand Down