Angular-google-maps: Allow all available query parameters on maps sdk

Created on 1 Feb 2016  路  2Comments  路  Source: SebastianM/angular-google-maps

It would be useful if users could specify all relevant query parameters on the sdk download link, so that it's possible to create URLs like e.g. https://maps.googleapis.com/maps/api/js?v=3.2.2&libraries=geometry,places.

MapsAPILoader feature-request

Most helpful comment

Pardon my ignorance, but how do we implement this method LazyMapsAPILoader to call the libraries we want? The documentation doesn't give any tips or examples yet.

Edit: I figured it out. it goes on the module that imports it.

imports [
AgmCoreModule.forRoot({
         apiKey: 'your_Key',
          libraries: ['drawing', 'places']
      })]

All 2 comments

@jmcarp makes 100% sense, I plan this for 0.7.0. Feel free to send a PR if you have time. Thanks

Pardon my ignorance, but how do we implement this method LazyMapsAPILoader to call the libraries we want? The documentation doesn't give any tips or examples yet.

Edit: I figured it out. it goes on the module that imports it.

imports [
AgmCoreModule.forRoot({
         apiKey: 'your_Key',
          libraries: ['drawing', 'places']
      })]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcelinobadin picture marcelinobadin  路  3Comments

supran2811 picture supran2811  路  4Comments

Subhojit1992 picture Subhojit1992  路  3Comments

n1t3w0lf picture n1t3w0lf  路  3Comments

Halynsky picture Halynsky  路  3Comments