开发者

custom overlay on a google map

I have my marker html currently sitting on top of a google map using css. Problem is that it's not connected to the map.. so when you pan the map the marker does not move with it. What part of the 开发者_JAVA技巧v3 api could help with this?

My marker:
<div class="placemarker-290">
 <span class="avatar-47">
  <a href="/"><img src="/images/" alt="Medium"></a>
 </span>
 <h3><a href="#">Name</a></h3>
 <p>Address</p>
 <p>Location</p>
 <span class="footer"></span>
</div>


Beyond modifying the base marker object itself, Google wrote a couple libraries that allow for greater marker customization, i.e. Marker With Label, StyledMarker and RichMarker (this may be the most helpful).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜