/** * Sets the fill color for a KML Polygon using a String * * @param color Fill color for a KML Polygon as a String */ /* package */ void setFillColor(String color) { // Add # to allow for mOutline color to be parsed correctly int polygonColorNum = (Color.parseColor("#" + convertColor(color))); setPolygonFillColor(polygonColorNum); mStylesSet.add("fillColor"); }
/** * Sets the outline color for a Polyline and a Polygon using a String * * @param color Outline color for a Polyline and a Polygon represented as a String */ /* package */ void setOutlineColor(String color) { // Add # to allow for mOutline color to be parsed correctly mPolylineOptions.color(Color.parseColor("#" + convertColor(color))); mPolygonOptions.strokeColor(Color.parseColor("#" + convertColor(color))); mStylesSet.add("outlineColor"); }
/** * Sets the color for a marker * * @param color Color for a marker */ /* package */ void setMarkerColor(String color) { int integerColor = Color.parseColor("#" + convertColor(color)); mMarkerColor = getHueValue(integerColor); mMarkerOptions.icon(BitmapDescriptorFactory.defaultMarker(mMarkerColor)); mStylesSet.add("markerColor"); }