Google Maps Marker — set background color

后端 未结 5 997
一向
一向 2020-12-10 09:49

I\'m using a transparent PNG as my marker, and would like for the transparent area to be filled a certain color. I previously accomplished this using marker shadows, but tho

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 10:15

    I have encountered the quite similar issue. I wish to convert my icon background to to transparent instead.

    I believe the easiest way is to convert your existing icon (png,jpg,bitmap) to gif format by making the background transparent. You can use the following online tool to help you do it. It is extremely easy.

    The following is the example of the icon with transparent output in google map. Hope it helps.

提交回复
热议问题