Google Maps: Border on Markers

后端 未结 3 500
面向向阳花
面向向阳花 2021-02-04 08:12

I\'m trying to display photos as markers on Google Maps. This is no problem by redefining the marker as an image, but I want to put some sort of border or shadow to make them st

3条回答
  •  被撕碎了的回忆
    2021-02-04 09:01

    Have a look at the Rich Marker v3 library demo (the actual library) which allows to use custom html as a marker.

    Setting a marker html of

    
    

    and clicking the toggle flat (an option in the library api) would do what you want.. you alter the image src of course ;)

    for more libraries look at http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries

提交回复
热议问题