GMaps.js is a Javascript library that allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code. With a few simple lines of code you can add a map in a minute!
Examples
Basic
var map = new GMaps({
div: '#map',
lat: -12.043333,
lng: -77.028333
});
Add marker
map.addMarker({
lat: -12.043333,
lng: -77.028333,
title: 'Lima',
click: function(e) {
alert('You clicked in this marker');
}
});
Draw route
map.drawRoute({
origin: [-12.044012922866312, -77.02470665341184],
destination: [-12.090814532191756, -77.02271108990476],
travelMode: 'walking',
strokeColor: '#131540',
strokeOpacity: 0.6,
strokeWeight: 6
});
All the examples can be found here.