rodney
rodney

Reputation: 59

Pins with dynamic text in MapKit?

Is it possible to display dynamic text instead of a standard pin drop in MapKit?

For instance, the Trulia app shows house prices instead of a drop pin on their app, I'm wondering if they just have 10,000 pin images and are calling them like 4000.png or 5000.png or if they are somehow using dynamic pins and setting the text when the annotation is called.

See image:

enter image description here

Upvotes: 1

Views: 1096

Answers (1)

Craig
Craig

Reputation: 8304

Yes this is totally possible. In viewForAnnotation just make your image, or use a cached one, according to the data you are trying to display at that point. Then set that as the annotation's image property.

Upvotes: 1

Related Questions