Google Maps API v2 for Android: Cannot draw like d

2019-04-15 03:03发布

问题:

I have developing an Android application, and I have moved from Google Maps for Android API v1 to v2.

With deprecated version 1 I created an Overlay for drawing some colored shapes (delimiting zones) and info text over my map, but now I have been viewing API v2 and cannot do the same.

I have trying to use Polygon property, but it doesn't fill with any colour, maybe because my shapes cannot be drawing in counterclockwise due to the pattern of them, for example a shape with 'U' pattern. Also, I don't know either how to put a text (no marker, just text) over the map.

Thanks in advance.

回答1:

still don't know how to put a text in the map

Create a Bitmap containing your text, and use a GroundOverlay, or possibly a TileOverlay.