toannk
5/14/2015 - 9:36 AM

Simple map

Simple map

$(document).ready(function() {
    var mapCanvas = document.getElementById('about_map');
    var latLng = new google.maps.LatLng(43.649569,-79.396777);
    var mapOptions = {
        center: latLng,
        zoom: 17,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        disableDefaultUI: true
    };
    var map = new google.maps.Map(mapCanvas, mapOptions);

    // Add custom marker
    var marker = new google.maps.Marker({
        position: latLng,
        map: map,
        icon: '/wp-content/themes/reverie/images/tunnelbear/about/map_icon.png'
    });
});