Google Maps API v2 for Android: Cannot draw like d

2019-04-15 03:02发布

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条回答
别忘想泡老子
2楼-- · 2019-04-15 03:34

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.

查看更多
登录 后发表回答