how to color regions with Apple's MapKit?

24 views
Skip to first unread message

mr.riddlemefish

unread,
Dec 26, 2009, 10:09:10 PM12/26/09
to iPhone SDK Development
The app called "BOMRadar" shows rain intensity over a region by
coloring the area with different coloured pixels depending on amount
of rain. There seems to be no way of defining a polygon with MapKit,
and this technique would work as a substitute for me, but how do you
it? Is it a separate overlay, and if so then how to keep the views
responding to gestures correctly, which I understand is the usual
problem? Or do they not use Mapkit?

Thanks if you can help?

Lucas Neiva

unread,
Dec 27, 2009, 3:45:15 PM12/27/09
to iphonesdkd...@googlegroups.com
Take a look at annotations. MKAnnotation, MKAnnotationView... I'm you can google some nice tutorials on how to use annotations on your Google Map.

You could draw your own MKAnnotationView using CG and have it have whatever shape and color you want.


--

You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To post to this group, send email to iphonesdkd...@googlegroups.com.
To unsubscribe from this group, send email to iphonesdkdevelop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesdkdevelopment?hl=en.



Peter J. MASON

unread,
Dec 27, 2009, 4:58:16 PM12/27/09
to iphonesdkd...@googlegroups.com

Lucas: I understand. I found one such article. Thanks.

Reply all
Reply to author
Forward
0 new messages