Introduction

Get started with gmaps, a JavaScript library that enables the rapid development of robust Google Maps web applications by providing extended functionality with a more streamlined API.

Download

Starter template

This is a basic template that will render a full-page map with the default settings. Head over to the Map documentation to learn more!

Copy
<!doctype html>
<html>
  <head>
    <title>gmaps starter page</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <style>
      body {
        margin: 0;
      }
      #gmap {
        height: 100vh;
        width: 100vw;
      }
    </style>
  </head>
  <body>
    <div id="gmap"></div>

    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
    <script src="gmaps/dist/gmaps.min.js"></script>
    <script>
      var myMap = new gmap()
    </script>
  </body>
</html>