Hi Tomasz, I believe MKAnnotationView would be your best option. Use a custom MKMapViewDelegate and override GetViewForAnnotation where you call mapView.DequeueReusableAnnotation to reuse the annotation view (or create a new if null). Here you can set your image to the annotation view.
Feel free to share your implementation if you need more help. Mikkel On Mon, Sep 5, 2011 at 14:01, Tomasz Cielecki <[email protected]> wrote: > Hello MonoTouch list, > > I am in the midst of creating a iPhone app where I need a map with > some circles, where the circle colors changes depending on the data > received asynchronously in the background. > > So my first approach to this was to get a Map shown on the devices > with a circle, which works fine. Only problem is that MKCircle takes a > radius for that circle, which means the circle is only visible at some > zoom level. So lets say the circle radius is 100 meters, then I have > to zoom to almost the biggest zoom level to get to a point where I > actually can see the circle, this is not the desirable behavior. I > want to have the circle resize along with the zoom level, just like > pins do. > > So I have also tried to use a custom image on MKPinAnnotationView and > on MKAnnotationView, neither of them seems to show my custom image. > The normal pin image shows when using MKPinAnnotationView. I have put > the pin image in the root of my project and referencing it with the > path "pin.png" (the name of the image is actually pin.png). > > So maybe someone here can help me find out what is wrong, or provide > me with some examples on how to do this? I would prefer if I could use > MKCircle and just choose the color. But using images could be a > solution. > > -- > Med Venlig Hilsen / With Best Regards > Tomasz Cielecki > http://ostebaronen.dk > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
