Friday, July 1, 2011

[android-developers] Re: KML Layers on Google Maps

Thank you both.

On Jun 30, 6:30 pm, Danny D <daniel.m.dev...@gmail.com> wrote:
> I don't believe that you can just pass the KML file to maps, at least
> I have not seen a way to do this.
>
> I am currently doing something similar, and I think you will need to
> draw the polygon manually on the canvas.
>
> As I'm approaching the problem, the individual OverlayItem (or child
> class derived from it) will need to draw itself based on the
> coordinates of the polygon.  This means that the ItemizedOverlay (or
> child class derived from it) will need to pass the Canvas, MapView and
> parameters down to the individual OverlayItem for doing the draw
> (rather than just calling "super" and being done with it).
>
> You should be able to set the Alpha channel of the polygon during the
> draw to, that's just a factor of the Paint object used during it's
> construction.
>
> Good luck,
> DD

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment