1

I try to create many markers in map with icon is a png image like placeholder. After that i want to set an other image inside of each placeholder.

It looks like this. My problem is how to set image inside image of marker. How to do that?

Rashad
  • 11,057
  • 4
  • 45
  • 73
Vũ Ngọc Giang
  • 234
  • 3
  • 12

1 Answers1

3

You would need to write code which takes the background image (eg the frame) and adds on the sub-image (eg the food picture), to create a combined UIImage. Then you could use the combined UIImage as the marker's icon.

Check out these questions for some examples of how to draw 2 UIImage objects into a single UIImage:

Draw another image on a UIImage

Attempting to draw image on top of another image using a touch event

Community
  • 1
  • 1
Saxon Druce
  • 17,406
  • 5
  • 50
  • 71