Search code examples
iosxamarin.iosgoogle-maps-sdk-ios

Transparent Polyline


This is my first question here so sorry if I get something wrong.

I am trying to draw a polyline in Google Maps but the specified color for the polyline seems not to accept the alpha channel of the color. The line is always solid. How could be this achieved? or is it possible at all?

I am doing this with Xamarin.iOS and the google maps control for the Xamarin.iOS but a solution in Objective C and Google Maps SDK for iOS would be great too.


Solution

  • I think that I found a solution to the problem, but it is a semi-solution because not every color can be reproduced.

    I used full green to draw a line and the alpha channel did not seem to have any effect. When I used a line with RBG color (0,0,10) it seems to create a line that is semi transparent and green.

    So to me it looks like that the RBG color channels are actually combined the color and the transparency (or they are implemented so that the color channel is just transparency channel for the full color).