Jatin Dhoot
Jatin Dhoot

Reputation: 4364

Append HTML with Google Map Marker Icon

I am working on weather website.

I am using Google Maps as backbone.

I am marking the major cities of country with Marker.

Depending upon the weather type like sunny, partly_cloudy I am changing the marker image.

Now with marker image I want to show a div with current temperature.

My plan was to append some with marker image but I was not able to achieve this.

Help me folks.

Upvotes: 3

Views: 17352

Answers (2)

Coelhone
Coelhone

Reputation: 310

Check this out. I've found it very usefull and it's for v3 :)

Upvotes: 0

Recep Karabıçak
Recep Karabıçak

Reputation: 2083

You can display custom made div's on the map using custom overlays.

Check the google map api documentation about the topic

Marker Light - Markers on a diet has a good example of custom layers using the version 2 of the api. I couldn't manage to find good examples for the 3rd version.

Upvotes: 2

Related Questions