gmaps.js console

Play with gmaps.js

by Denis Antonenko

HTML

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"></script>
<div id="map"></div>

CSS

html,
body,
#map {
    display: block;
    width: 100%;
    height: 100%;
}

#map {
    background: #58B;
}

JavaScript

var map = new google.maps.Map(document.getElementById('map'),
                              {
                                 zoom: 12,
                                 center: new google.maps.LatLng(25.834217, -80.211700) 
                              });

var marker = new google.maps.Marker({
    position: map.getCenter(),
    map: map,
    title: '25.834217, -80.211700 - Geofence Center'
  });

var marker2 = new google.maps.Marker({
    position: new google.maps.LatLng(25.881004,-80.266932),
    map: map,
    title: '25.881004,-80.266932 - Real station location'
  });