GMaps.js — Basic

Using GMaps.js is as easy as:

new GMaps({
  el: '#map',
  lat: -12.043333,
  lng: -77.028333

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

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