GMaps.js — Static map with markers

With GMaps.js, a static map with markers is made this way:

url = GMaps.staticMapURL({
  size: [610, 350],
  lat: -12.043333,
  lng: -77.028333,
  markers: [
    {lat: -12.043333, lng: -77.028333},
    {lat: -12.045333, lng: -77.034, size: 'small'},
    {lat: -12.045633, lng: -77.022, color: 'blue'}
  ]
});

$('<img/>').attr('src', url)
  .appendTo('#map');

If no style attribute (like color, size or icon) is defined for a marker, the last one (or the default) will be used.