@angeeks/gmaps
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Gmaps

Build Status npm version

Google Maps API + Angula

npm i -P @angeeks/gmaps

Usages

setup

+ import { GmapsModule, gmapsKey } from '@angeeks/gmaps';

@NgModule({
  imports: [
+    GmapsModule
  ],
  providers: [
+   { provide: gmapsKey, useValue: 'your-key' }
  ]
})
export class AppComponent {}
// component.html
+ <ngk-gmaps [options]='options'></ngk-gmaps>

// component.ts
+ import { GmapsComponent } from '@angeeks/gmaps';
export class AppComponent {
+ options = { center: { lat: 0, lng: 0 }, zoom: 10 };
}
// component.scss
:host {
  ngk-gmaps {
    height: 400px;
    width: 400px;
  }
}

Package Sidebar

Install

npm i @angeeks/gmaps

Weekly Downloads

4

Version

0.0.1

License

MIT

Unpacked Size

84 kB

Total Files

29

Last publish

Collaborators

  • speed.of.light