Mapitool

Google Maps Api Tool

Getting Started


Dependencies

Get an API Key from the Google API Console.

<!-- mapitool.js -->
<script src="https://faridbabayev001.github.io/Mapitool/js/mapitool.js"></script>

Install on page

Add js file from plugin:

<!-- Js -->
<script src="js/Map.js"></script>

Usage


Create your <div> with the #map id.

<div> id="map" style="width:500px;height:500px"></div>

Options can be passed via data attributes or JavaScript.


new Map("map",
    {
        type: 'Basic',
        apiKey: 'YOUR_API_KEY',
    });