angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Google maps layer, language and key #128

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @pkarop on October 7, 2015 17:30

Are there any params for Google maps layer, so I can set language and api key through Javascript? I am trying something like this

            layers: {
                baselayers: {
                    googleRoadmap: {
                        name: 'Google Streets',
                        layerType: 'ROADMAP',
                        type: 'google',
                        layerParams: {
                            key: key,
                            language: $scope.language
                        }                            
                    }
                 }                    
            }   

Copied from original issue: tombatossals/angular-leaflet-directive#982

nmccready commented 9 years ago

I dont think there is yet; but copying this service angular-google-maps would work.