Peter
2010-01-13 13:29:28 UTC
Hi,
I am new to Android Dev and to this group. I wanted to do some work
with the MapView. Mostly some basic stuff like zooming to an address,
and the programatically drawing a shape (polygon) based on user input
of coordinates. Then i want to overlay that polygon on the google map
at the specified location.
Does anyone have some sample code for a polygon overlay? I went
through the MapView tutorial on the Android Dev site, and that was
great to get me started. But that uses a GeoPoint overlay... I guess
i am looking for more of a GeoPolygon (??) overlay, but i checked the
google api and there is no such class.
Any help or links to documentation to do this would be great. I am
guessing i need to great an android.graphics.drawable.shapes.shape to
create the polygon, and then add it to an OverlayItem from the google
maps API?? But i am very confused on how to do this.
Thanks!
Pete
I am new to Android Dev and to this group. I wanted to do some work
with the MapView. Mostly some basic stuff like zooming to an address,
and the programatically drawing a shape (polygon) based on user input
of coordinates. Then i want to overlay that polygon on the google map
at the specified location.
Does anyone have some sample code for a polygon overlay? I went
through the MapView tutorial on the Android Dev site, and that was
great to get me started. But that uses a GeoPoint overlay... I guess
i am looking for more of a GeoPolygon (??) overlay, but i checked the
google api and there is no such class.
Any help or links to documentation to do this would be great. I am
guessing i need to great an android.graphics.drawable.shapes.shape to
create the polygon, and then add it to an OverlayItem from the google
maps API?? But i am very confused on how to do this.
Thanks!
Pete