September 15, 2010
If you start working with the Google maps API, one of the first things you might want to do is to add a marker or custom icon to the map at a specific location. This is easy enough to do and you can have a look at this example on how to do it. But what if you want to add text or a label to one of your markers that always shows up on the map, not only when you hover over the marker? Strangely enough, this isn’t as easy as you would think…
Luckily Marc Ridey wrote a very helpful article with example code (for API V3) on how to easily add labels to the markers on your Google map. You might need to customize it a bit to suite your specific needs, but it will surely save you loads of time.
Hope this helps somebody. :)