开发者

Display country names in Google Maps

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_PHYSI开发者_运维百科CAL_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 http://img413.imageshack.us/img413/3756/terrnoname.jpg

This is how it was a few weeks ago: Terrain View with Country Names http://img13.imageshack.us/img13/2466/googlemapsterrain21.png

Thanks.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜