The question of how to do gradient polylines has been asked a number of times, however, I want to know if this comes built in for Android. In the following post, this question is poised and someone answered that as of May 2015, there was still no gradient polylines for Android:
colourful polylines in android maps api v2
I have combed through all the documentation I can find and do not see anything about a gradient polyline function. Am I missing it? Because iOS has had this capability for three years now.
https://maps-apis.googleblog.com/2014/02/gradient-polylines-and-structured.html
I can't imagine that Google is prioritizing iOS over Android. Or are they? Here is the documentation I have checked:
https://developers.google.com/maps/documentation/android-api/polygon-tutorial
https://developers.google.com/android/reference/com/google/android/gms/maps/model/PolylineOptions
https://developers.google.com/maps/documentation/android-api/groundoverlay
If someone can point me in the right direction that would be helpful. Or at least confirm that Android has been ignored in respect to gradient polylines.
Draw a path or polygonTo make a path or polygon into a 3D object, click Altitude. A "New Path" or "New Polygon" dialog will pop up. You may need to move it out of the way before moving on to the next step. To draw the line or shape you want, click a start point on the map and drag.
A polyline is a list of points, where line segments are drawn between consecutive points. A polyline has the following properties: Points. The vertices of the line. Line segments are drawn between consecutive points.
It looks like this is not implemented yet in Google Maps Android API.
You can see the following feature requests:
https://issuetracker.google.com/issues/35828754
https://issuetracker.google.com/issues/35821835
At this point I think Google didn't set a high priority on these tasks. You can star these feature requests to add your vote and subscribe to further notifications.
It is is available from Maps SDK 3.1.0 (beta): https://developers.google.com/maps/documentation/android-sdk/v310-beta#creating_a_gradient_polyline
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With