开发者

custom overlay on a google map

开发者 https://www.devze.com 2023-04-13 04:31 出处:网络
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 开

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

精彩评论

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

关注公众号