open static fun createPolyline(@NonNull context: Context, @NonNull pathOption: PathOption): PolylineOptions
Convert the path option to the polyline options.
pathOption - Path options of the steps.
Return
Options for a polyline.
Since
1.2.0
open static fun createPolyline(@NonNull context: Context, @Nullable locationList: ArrayList<LatLng>, @Dimension(0) width: Int, color: Int): PolylineOptions
Convert the list of latitude and longitude to the polyline options.
locationList - A list of latitude and longitude.
width - Width of the polyline in screen pixels.
color - Color of the polyline as a 32-bit ARGB color.
Return
Options for a polyline.
Since
1.0.0
open static fun createPolyline(@NonNull context: Context, @Nullable locationList: ArrayList<LatLng>, @Dimension(0) width: Int, color: Int, clickable: Boolean): PolylineOptions
Convert the list of latitude and longitude to the polyline options.
locationList - A list of latitude and longitude.
width - Width of the polyline in screen pixels.
color - Color of the polyline as a 32-bit ARGB color.
clickable - Is polyline clickable.
Return
Options for a polyline.
Since
1.2.0
open static fun createPolyline(@NonNull context: Context, @Nullable locationList: ArrayList<LatLng>, @Dimension(0) width: Int, color: Int, clickable: Boolean, jointType: Int): PolylineOptions
Convert the list of latitude and longitude to the polyline options.
locationList - A list of latitude and longitude.
width - Width of the polyline in screen pixels.
color - Color of the polyline as a 32-bit ARGB color.
clickable - Is polyline clickable.
jointType - Joint type for all vertices of the polyline except the start and end vertices.
Return
Options for a polyline.
Since
1.2.0
open static fun createPolyline(@NonNull context: Context, @Nullable locationList: ArrayList<LatLng>, @Dimension(0) width: Int, color: Int, clickable: Boolean, @Nullable startCap: Cap, @Nullable endCap: Cap): PolylineOptions
Convert the list of latitude and longitude to the polyline options.
locationList - A list of latitude and longitude.
width - Width of the polyline in screen pixels.
color - Color of the polyline as a 32-bit ARGB color.
clickable - Is polyline clickable.
startCap - Cap at the start vertex of the polyline.
endCap - Cap at the end vertex of the polyline.
Return
Options for a polyline.
Since
1.2.0
open static fun createPolyline(@NonNull context: Context, @Nullable locationList: ArrayList<LatLng>, @Dimension(0) width: Int, color: Int, clickable: Boolean, @Nullable patternItemList: MutableList<PatternItem>): PolylineOptions
Convert the list of latitude and longitude to the polyline options.
locationList - A list of latitude and longitude.
width - Width of the polyline in screen pixels.
color - Color of the polyline as a 32-bit ARGB color.
clickable - Is polyline clickable.
patternItemList - Stroke pattern for the polyline.
Return
Options for a polyline.
Since
1.2.0
open static fun createPolyline(@NonNull context: Context, @Nullable locationList: ArrayList<LatLng>, @Dimension(0) width: Int, color: Int, clickable: Boolean, jointType: Int, @Nullable startCap: Cap, @Nullable endCap: Cap, @Nullable patternItemList: MutableList<PatternItem>): PolylineOptions
Convert the list of latitude and longitude to the polyline options.
locationList - A list of latitude and longitude.
width - Width of the polyline in screen pixels.
color - Color of the polyline as a 32-bit ARGB color.
clickable - Is polyline clickable.
jointType - Joint type for all vertices of the polyline except the start and end vertices.
startCap - Cap at the start vertex of the polyline.
endCap - Cap at the end vertex of the polyline.
patternItemList - Stroke pattern for the polyline.
Return
Options for a polyline.
Since
1.2.0