Mark Steggles
Mark Steggles

Reputation: 5553

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 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>

Upvotes: 2

Views: 446

Answers (1)

Casey
Casey

Reputation: 2045

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).

Upvotes: 2

Related Questions