Have a look here:

https://gist.github.com/1184571


I set around 400 pins on a button press. it's instantanious.

you want to focus on:

RefreshPinColours() - line 384

GetViewForAnnotation. line 478

(I use a custom annotation - CycleAnnotation - to keep track of the
PinAnnotationView)

it's from this app:

http://www.fastchicken.co.nz/londonbikeapp

I think I "stole" the code from someone else to do the annotations,
and ported it from obj-c, tho that was 12 months ago, and to be
honest, I dont remember.

Hope that helps. It CAN be done :)





On Wed, Aug 31, 2011 at 20:43, r2d2 <[email protected]> wrote:
> My simple application contains UIMapView with some annotations.
> I used  GetViewAnnotation in MyDelegate:MKMapViewDelegate to customize
> colors of default round pin in annotation view.
> So I can set colors of the pin only in time of creation annotation view.
> I want to change content of annotation view on some events for example on
> timer event. I can change title, subtitle but i cant understand how to
> change color of the round pin.
> I can remove all annotations from the mapview and create new ones with
> another color - but it's bad idea...
>
> Thanks
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Customizing-map-annotation-view-tp3782029p3782029.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to