{% set title = 'Google Maps &rsaquo; Geolocation' %}
{% set page = 'gmaps-geolocation.html' %}
{% extends 'layouts/master.html' %}

{% block content %}
        <section class="section">
          <div class="section-header">
            <h1>Geolocation</h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Dashboard</a></div>
              <div class="breadcrumb-item"><a href="#">Google Maps</a></div>
              <div class="breadcrumb-item">Geolocation</div>
            </div>
          </div>

          <div class="section-body">
            <h2 class="section-title">Geolocation</h2>
            <p class="section-lead">
              Here is a simple example using the map, we use the plugin <code>gmaps.js</code> made by <a href="https://github.com/hpneo" target="_blank">@hpneo</a>. You can learn more about this plugin <a href="https://github.com/hpneo/gmaps" target="_blank">here</a>.
            </p>

            <div class="row">
              <div class="col-12">
                <div class="card">
                  <div class="card-header">
                    <h4>Geolocation</h4>
                  </div>
                  <div class="card-body">
                    <div class="alert alert-info">
                      In this example there will be a marker on the map located in accordance with your position. Click 'allow' in the popup that appears in your browser.
                    </div>
                    <div id="map" data-height="400"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </section>
{% endblock %}

{% block plugins_js %}
  <script src="http://maps.google.com/maps/api/js?key=AIzaSyB55Np3_WsZwUQ9NS7DP-HnneleZLYZDNw&amp;sensor=true"></script>
  <script src="../node_modules/gmaps/gmaps.min.js"></script>
{% endblock %}

{% block page_js %}
  <script src="../assets/js/page/gmaps-geolocation.js"></script>
{% endblock %}
