I have
var marker = new MarkerWithLabel({
position: uav.Position,
icon: mapStyles.uavSymbolBlack,
labelContent: uav.Callsign +
'<div style="text-align: center;"><b>Alt: </b>' + uav.Alt +
'<br/><b>Bat: </b>' +
uav.Battery + '</div>',
labelAnchor: new google.maps.Point(95, 20),
labelClass: "labels",
labelStyle: { opacity: 0.75 },
zIndex: 999999,})
This marker in my JavaScript file, but java console keep giving me an error.
Uncaught ReferenceError: MarkerWithLabel is not defined
I thought MarkerWithLabel is the built-in of the google maps api. But it doens't work.
MarkerWithLabel is not part of the Google Maps Javascript API v3, it is in a third party library MarkerWithLabel.
One indication is that if it was part of the API it would be google.maps.MarkerWithLabel.
-documentation
-examples
fiddle
code snippet: