0

I have created several polygons over google map which are filled with color

Polygon polygon = mMap.addPolygon(opts.strokeColor(Color.WHITE).strokeWidth(2).fillColor(Color.RED));

I know how to set transparent whole polygon but is is it possible to set transparent only parts of it(change color)? The idea is, when the user touches the parts of polygon they are set transperent, something similar to this: Erase bitmap parts using PorterDuff mode But this example is used for DrawingViews and bitmaps, not for maps and polygons.

Community
  • 1
  • 1
Kots
  • 13
  • 4
  • how about breaking your polygon into smaller polygons so it looks like just one polygon, in reality, many smaller polygons combine into a large one. Then, when user touches a part of the polygon, you simply change the transparency of that smaller polygon. – so_jin_ee Jul 07 '15 at 16:38
  • I think it will simply kill the performance, since I already have quite a lot of polygons. Besides with so many polygons it won't be possible to calculate coordinates for small ones. – Kots Jul 09 '15 at 13:35

0 Answers0