Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 948
Jatin Dhoot Avatar asked May 02 '26 21:05

Jatin Dhoot


1 Answers

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.

like image 138
solidrevolution Avatar answered May 05 '26 15:05

solidrevolution



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!