Android Question Shading an area on googlemap

andyp

Member
Licensed User
Hi. I have 3 sets of lat/long coordinates (latA/longA, latB/longB, latC/longC)

I have used these to draw 3 polylines on my map.

Now I would like to shade in the enclosed area - is there any function to do this?

Thank you
Andrew
 

eurojam

Well-Known Member
Licensed User
Longtime User
No I don't think, that there is a function to do that. I would draw an additional polygon with the same coordinates and make a black fill color with a high transparancy, something like this code:
B4X:
    Dim polygonoptions1 As PolygonOptions
    polygonoptions1.Initialize
    polygonoptions1.FillColor=Colors.ARGB(50,0,0,0)
    polygonoptions1.AddPoints(sameListAsthePolyline)
    PolygonDigit = GoogleMapsExtras1.AddPolygon(gmap, polygonoptions1)
 
Upvote 0
Top