58948

Google Maps API, can I change country names?

Question:

I am using the Google Maps API v3 for a map on my Website, and am setting the laguage to French.

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=fr">

The problem is that Google has done a poor job for the French translation of country names. To remedy this, I'm wondering if I can rewrite all country names. I have searched and searched, but alas, nothing but style-based modifications it seems. Can this be done? If so, how?

Thanks,

Answer1:

One option would be to hide all the labels on the map and add your own. Once you hide the existing labels (using a <a href="https://developers.google.com/maps/documentation/javascript/styling" rel="nofollow">styled map</a>), you can add labels you like to the map using <a href="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/examples/infobox-label.html" rel="nofollow">infobox</a>. This won't work if you have lots of labels, but if it is just the country names it should be OK.

Recommend

  • UIAlertController button function not working
  • NUnit 3.0 TestCase const custom object arguments
  • Android Google Maps API v2 start navigation
  • How to view images from protected folder with php?
  • What does 'Language neutral' mean with regard to MAKELANGID?
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • Android activity accessing service's static reference before the service is ready
  • Display images in Django
  • How to attach a node.js readable stream to a Sendgrid email?
  • Switching to Release Build causes runtime error in Web Reference
  • Seeking advice on Jetty HttpClient Hang
  • Jenkins: How To Build multiple projects from a TFS repository?
  • HTML download movie download link
  • Resize panoramic image to fixed size
  • Updating server-side rendering client-side
  • MySQL WHERE-condition in procedure ignored
  • Importing jscolor library in angular 2
  • Hazelcast - OperationTimeoutException
  • Web-crawler for facebook in python
  • Google cloud sdk not working when python points python3
  • Rearranging Cells in UITableView Bug & Saving Changes
  • RestKit - RKRequestDelegate does not exist
  • Circular dependency while pushing http interceptor
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • Linker errors when using intrinsic function via function pointer
  • Revoking OAuth Access Token Results in 404 Not Found
  • trying to dynamically update Highchart column chart but series undefined
  • using HTMLImports.whenReady not working in chrome
  • How to set the response of a form post action to a iframe source?
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Turn off referential integrity in Derby? is it possible?
  • Bitwise OR returns boolean when one of operands is nil
  • sending mail using smtp is too slow
  • JaxB to read class hierarchy
  • costura.fody for a dll that references another dll
  • Binding checkboxes to object values in AngularJs
  • Android Heatmap on canvas or ImageView
  • java string with new operator and a literal