Basic

Using GMaps.js is as easy as:

new GMaps({
  div: '#map',
  lat: -12.043333,
  lng: -77.028333
});

You must define container ID, latitude and longitude of the map's center.

NoteYou also can define zoom, width and height. By default, zoom is 15. Width an height in a CSS class will replace these values.

NoteMap types are defined in the mapType property. Allowed values are: roadmap (default), satellite, hybrid and terrain.