I tried different combinations in map-lazy-load-params but nothing worked. Few combinations were:
$scope.mapParams = '&language=' + $scope.locale;$scope.mapParams = 'https://maps.googleapis.com/maps/api/js&language=' + $scope.locale;
Static language works perfectly fine like I did this to verify map language change or not.
<div map-lazy-load="https://maps.google.com/maps/api/js?key=abc&v=3.34&language=ja">
I am using ngmap version 1.18.4, angular version 1.4.9. I want to switch language but it didn't reflect. I saw couple of issues that are already discussed, e.g. https://github.com/allenhwkim/angularjs-google-maps/issues/760
Above issue closed by suggesting to remove script tag. I don't have script tag which loads google-maps.
index.html:
<script src='bower_components/ngmap/build/scripts/ng-map.js'></script>
Controller code:
Html code:
I tried different combinations in map-lazy-load-params but nothing worked. Few combinations were:
$scope.mapParams = '&language=' + $scope.locale;
$scope.mapParams = 'https://maps.googleapis.com/maps/api/js&language=' + $scope.locale;
Static language works perfectly fine like I did this to verify map language change or not.
<div map-lazy-load="https://maps.google.com/maps/api/js?key=abc&v=3.34&language=ja">
Can someone tell me the solution?