tags:

views:

372

answers:

1

I have code like this that sets the map type to Terrain View:

map = new GMap2(document.getElementById("map_canvas"));         
map.setMapType(G_PHYSICAL_MAP); //Terrain View

The G_PHYSICAL_MAP type used to display the country names, so Google must have changed this recently. Is there a way to add the country names back?

This is how the terrain map looks now without country names: Current Terrain View

This is how it was a few weeks ago: Terrain View with Country Names

Thanks.

A: 

The country names on the terrain map were part of the map imagery (before they disappeared). Unfortunately there seems to be no way to request different map imagery that includes country names.

The only option I see is to define your own map overlay on top of the terrain map, with all the country names. (Probably not practical and not easy).

1st EDIT: As suggested in a comment below, if you plan to add large overlays over the terrain map, you may want to use the open-source tool MapTiler (for Windows and Mac OS X). MapTiler will automate the tiling process for you, and in addition, once the tiling process is finished, it will generate a simple HTML viewer. If you are adding the name of just one country, you may want to use the GGroundOverlay instead. (Google Demo)

2nd EDIT: Note that this issue has been acknowledged by a Google employee on January 20th, and therefore you may want to consider waiting for a few days to see if it gets sorted automatically, before you commit your time to fix it.

3nd EDIT: This has been fixed a few weeks ago by Google.

Daniel Vassallo
Thanks Daniel, If I just needed to add one country's name and if I had the coordinates of that country, how would you do it?
James Lawruk
James, I suggest checking out: http://stackoverflow.com/questions/2049000/
Daniel Vassallo
For an individual country, I'd suggest placing the text in an ELabel that floats over the map rather than making tiles for each zoom level.http://econym.org.uk/gmap/elabel.htm
Mike Williams
Good Suggestion, Mike. The only issue with an ELabel is that it does not automatically zoom in/out with the zooming of the map.
Daniel Vassallo
Thanks, right now I am leaning toward using an overlay.
James Lawruk