Page 1 of 1

mergMK annotation with custom image instead of red pin

Posted: Thu Jun 08, 2017 3:26 am
by tomsve
Hi all,

I can't get mergMKAddAnnotationWithImage to work. I have an image control on the card that I named "imageIcon", the source is set to a PNG file. The image shows up correctly in the iOS simulator.

I've tried with (in my opinion) all sorts of things, for example;
put mergMKAddAnnotationWithImage("58.8966498,17.5463627" ,"My title", image 1)
^^ the map shows up, but with a red pin

put mergMKAddAnnotationWithImage("58.8966498,17.5463627" ,"My title", image id 1)
^^ the map shows up, but with a red pin

put mergMKAddAnnotationWithImage("58.8966498,17.5463627" ,"My title", "imageIcon")
^^ the map shows up, but with a red pin

put mergMKAddAnnotationWithImage("58.8966498,17.5463627" ,"My title", image "imageIcon")
^^ the map doesn't show up at all.

put mergMKAddAnnotationWithImage("58.8966498,17.5463627" ,"My title", graphic "imageIcon")
^^ the map doesn't show up at all

How do I make so my small little icon in "imageIcon" will be instead of the red pin? What am I doing wrong?

Thanks for the help!
Tom