Best way to display a custom Google maps multiple image marker icon

前端 未结 2 658
渐次进展
渐次进展 2021-01-29 08:53

I have two images, one is like an icon and the other is the icon background, what is the best way to combine these two images and make a google marker v3 icon? They are not svg

2条回答
  •  故里飘歌
    2021-01-29 09:12

    Simplest way: Use an image editor to make a single image and use that as the icon for your custom marker.

    If you can't or don't want to do that you can make a custom overlay (reference) that behaves like a marker and use it to overlay the two images in the correct order on the map.

提交回复
热议问题