Is it possible to replace the pin icon of an annotation by a dynamic text label?
Maybe using css, or dynamically creating an image?
For example a label is done with CSS on Google Maps API with JavaScript.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible.
In iOS MapKit, you’ll need to implement the
viewForAnnotationdelegate method and return anMKAnnotationViewwith aUILabeladded to it.For example:
Make sure the map view’s
delegateproperty is set otherwise this delegate method will not get called and you will get the default red pins instead.