How to add labels on Google Maps Pinpoints?
Posted
by Jason
on Stack Overflow
See other posts from Stack Overflow
or by Jason
Published on 2010-03-23T19:41:12Z
Indexed on
2010/03/23
19:43 UTC
Read the original article
Hit count: 333
google-maps-markers
|google-maps-api-2
Creating a google map with store locations within 50 miles of user entered address. Have map & pinpoints showing correctly but all of the pinpoints just have a dot on them. I'd like to be able to label them A, B, C, D, etc so that I can list out locations & addresses in sidebar.
How would I do this? Here's the code I'm using to add my pinpoints.
var point = new GLatLng(latitude, longitude);
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function () {
map.openInfoWindowHtml(point, myHtml);
});
map.addOverlay(marker);
© Stack Overflow or respective owner