var infowindow = {content: ”};
function prepare_google_map1() {
var _mapLatlng = new google.maps.LatLng(40.31187, -3.8646687);
var mapOptions = {
zoom: 11,
scrollwheel: false,
draggable: true,
streetViewControl: false,
center: _mapLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: false,
}
var map = new google.maps.Map(document.getElementById(‘google-map-1’), mapOptions);
var styles = law_firm_get_map_styles(‘view_2’);
if (styles != ”) {
var styledMap = new google.maps.StyledMapType(styles, {name: ‘Styled Map’});
map.mapTypes.set(‘map_style’, styledMap);
map.setMapTypeId(‘map_style’);
}
var $info_box_div = document.createElement(‘div’);
var infowindow = new InfoBox({
content: $info_box_div,
disableAutoPan: true,
maxWidth: 250,
maxHeight: 150,
pixelOffset: new google.maps.Size(-125, -100),
zIndex: null,
boxStyle: {
background: ‘none’,
opacity: 1,
width: ‘250px’
},
closeBoxMargin: ‘5px 5px 0px 0px’,
closeBoxURL: ‘http://www.google.com/intl/en_us/mapfiles/close.gif’,
infoBoxClearance: new google.maps.Size(1, 1)
});
$info_box_div.className = ‘law-info-box’;
$info_box_div.style.cssText = ‘background-color:#db5940;color:#ffffff;’;
$info_box_div.innerHTML = “Abogados Incapacidad en Madrid”;
var _settings = {
position: _mapLatlng,
map: map,
title: ”,
shadow: ”
}, animation, icon;
_settings.icon = ‘https://www.incapacidad.info/wp-content/themes/law-firm/images/marker.png’;
try {
var marker = new google.maps.Marker(_settings);
if (infowindow.content != ”) {
infowindow.open(map, marker);
map.panBy(1, -70);
google.maps.event.addListener(marker, ‘click’, function (event) {
infowindow.open(map, marker);
});
}
} catch (ex) {
console.error(ex);
}
}
jQuery(document).ready(function (e) {
google.maps.event.addDomListener(window, ‘load’, prepare_google_map1);
});

Contáctenos

Submit

 
Comparte Esta Página
 
Delicious