Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

How can I change the map language DYNAMICALLY? #1517

Open
@glederer

Description

@glederer

As explained in issue #1482; the language of the map can be set in this way :

'use strict';
angular.module("angular-google-maps-example", ['uiGmapgoogle-maps'])
.config(['uiGmapGoogleMapApiProvider', function (GoogleMapApi) {
  GoogleMapApi.configure({
    //key: 'your api key',
    //v: '3.20', //(defaults to 3.X)
    libraries: 'weather,geometry,visualization', //optional
    language:ru-RU //set whatever langs u want
  });
}])

I am user angular-translate in a page with a angular google map too, there is a toggle language menu on top of my page and it would be convenient that it also change the google map language without refreshing the page itself. how could I dynamically change this setting? is it possible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions