angular-ui / ui-leaflet

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

Google maps layer, language and key #128

Open nmccready opened 8 years ago

nmccready commented 8 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 8 years ago

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