GMaps.js add and remove layers - Layers

You can easily add or remove a layer using GMaps.js:

var map = new GMaps({
  el: '#map',
  lat: -12.043333,
  lng: -77.028333
map.addLayer('weather', {
  clickable: false

Note: You can choose different layers. Possible values are weather, clouds, traffic, transit and/or bicycling

Note: Be aware that you have to add the library 'weather' in the url for the weather/clouds layer:

Note: In the second param you can add your options for the layer as object.

Note: To remove a layer you can use