Adding text overlay to Google Maps

google-maps

Solution

There are a few third-party extensions that will help you to easily accomplish this. Try the ELabel. It works like this:

var label = new ELabel(new GLatLng(44.3,-78.8), "Utopia", "style1");
map.addOverlay(label);

Problem

This is such a simple problem, but I can't find an answer anywhere... I have a python script that returns a bunch of numbers that represents the total number of items for a given geographic region. I have a bunch of `.kml` files that I made that represent the geographic bounds for each region. I want to take those numbers created by the script and paste them over top the matching `.kml` overlay. I can't figure out how to do this. I know how to add the `.kml` files, but I can't figure out how to do the text. Theres a lot of information on Google's site on how to add marker icons, polylines, even images to the map, but I can't find how to add just a simple bit of text.

Original source