mergMK annotation with custom image instead of red pin

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tomsve
Posts: 45
Joined: Tue Jan 20, 2015 5:01 pm
Location: Ukraine/Armenia

mergMK annotation with custom image instead of red pin

Post by tomsve » Thu Jun 08, 2017 3:26 am

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”