Simple Google Maps Example

by Marko Keuschnig

HTML

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;signed_in=true"></script>
<div class="well">
    <div class="col-md-12" id="map-canvas"></div>
</div>

CSS

#map-canvas {
    height: 500px;
}

JavaScript

var map;

function initialize() {
    var mapOptions = {
        zoom: 11,
        center: new google.maps.LatLng(36.9533092, 26.9798133)
    };
    map = new google.maps.Map(document.getElementById('map-canvas'),
    mapOptions);
}

initialize();