/*
* maps.js
* Simple Google Maps
*
* www.anwalt-schulrecht-berlin.de
* © 2014 Anreas Jakubietz Berlin
*
*/
// $(document).ready(function () {
var mylatlng = new google.maps.LatLng(52.501107,13.317743);
var centerlatlng = new google.maps.LatLng(52.5028,13.317743);
var mapOptions = {
zoom: 15,
minZoom: 4, // 0-20
maxZoom: 20,
center: centerlatlng,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL,
position: google.maps.ControlPosition.LEFT_TOP
},
panControl: true,
panControlOptions: {
position: google.maps.ControlPosition.LEFT_TOP
},
panControl: true,
mapTypeControl: true,
streetViewControl: true,
scaleControl: true,
scrollwheel: true,
overviewMapControl: true,
rotateControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
var image = '/images/marker.png';
var marker = new google.maps.Marker({
position: mylatlng,
map: map,
icon: image
});
// To add the marker to the map, call setMap();
//marker.setMap(map);
// Info Window
// var info_window = new google.maps.info_window({ content:'Andreas Jakubietz
Rechtsanwalt
Kurfürstendamm 194
10707 Berlin' });
// google.maps.event.addListener(marker, 'click', function () { info_window.open(map,marker); });
// Enable Retina Image
if (retina==true && ipad==true) $("#haus_cumberland").attr("src", "/images/haus_cumberland@2x.jpg");
// }); // end $(document).ready