1

I know this is basic stuff but the documentation online is thin. I am new to Apple Mapkit and I am trying to create a simple annotation with a glyphImage overlay. I have the annotation working, but when I try to set the glyphImage the map blows up. The code I am using is:

testAnnotation.glyphImage = UIImage(named: "/public/img/site/tester.png");

What am I doing wrong here?

scopchanov
  • 7,966
  • 10
  • 40
  • 68

1 Answers1

0

I figured this out:

var testAnnotation = new MarkerAnnotation(test, {
        title: "This is a Test!",
        subtitle: "Testing Apple MapKit",
        glyphImage: {
                1: "/images/testimage.png"
            }
        });