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

maneesht picture maneesht  路  3Comments

DeveloperAdd007 picture DeveloperAdd007  路  3Comments

dineshkumar20 picture dineshkumar20  路  3Comments

nthonymiller picture nthonymiller  路  4Comments

stot3 picture stot3  路  3Comments