I am trying to figure out how to add Google Maps MarkerLabel .
I can get a standard marker for display, but when I try to add a label ! to the marker, I get google.maps.MarkerLabel is not a function .
var marker = new google.maps.Marker({ animation: google.maps.Animation.DROP, label: new google.maps.MarkerLabel({ text: '!' }), map: myMap, position: myMapOptions.center });
I assume that I cannot create an instance of the new MarkerLabel object. What should I do to get an exclamation mark inside the marker.
source share