Google maps change language dynamically (asynchronous download)

Is there a way to load the language in the map options field?
Something like that:

var mapOptions = { center : new google.maps.LatLng(43.97918, 53.716647), zoom : 10, mapTypeId : google.maps.MapTypeId.ROADMAP, language : 'fr' }; 
+6
source share
2 answers

Found it!

Using google script https://www.google.com/jsapi

google.load('maps', '3.x', { 'other_params' : 'sensor=true&libraries=geometry&language=' + langCode, 'callback' : mapsLoadeds });

mapsLoaded executes the general code for creating maps.

+6
source

You can use the language parameter in google maps url:

 <script src="http://maps.googleapis.com/maps/api/js?sensor=false&language=ja"> </script> 
+2
source

All Articles