Mano got the correct answer if you want to position something on a map that is not geographically limited, such as a menu or title.
If you want to display something geographically geo-referenced, such as the name of a city (pretending that the API is not already doing this), you will head the CustomOverlay route. Although all examples use images, this is not a requirement in any way. If you look at an example of a simple overlay and look at the source code around line 62, you will see the exact lines that add the <img> object to the <div> . You could just add text to the div instead of the image.
source share