© 2025 Lifeback Law Firm, P.A. | Disclaimer | Privacy Policy | Sitemap
Bankruptcy Attorney Marketing Powered by Gorilla.
/*<![CDATA[*/
var markers = []; // Array where to store the markers
var openInfoWindow; // Variable to hold the open info window so we never have more that one open
function bindInfoWindow(marker, map, infoWindow, content) {
google.maps.event.addListener(marker, 'click', function() {
if(openInfoWindow) { // Check if an info window is already open
openInfoWindow.close(); // Close the existing info window
}
infoWindow.setContent(content); // Set the content of the info window
//map.panTo(marker.getPosition());
infoWindow.open(map, marker); // Open the info window for this marker
openInfoWindow = infoWindow; // Set the openInfoWindow to this marker's info window
});
/*
google.maps.event.addListener(marker, 'mouseover', function() {
if(openInfoWindow) { // Check if an info window is already open
openInfoWindow.close(); // Close the existing info window
}
infoWindow.setContent(content); // Set the content of the info window
infoWindow.open(map, marker); // Open the info window for this marker
openInfoWindow = infoWindow; // Set the openInfoWindow to this marker's info window
});
google.maps.event.addListener(marker, 'mouseout', function() {
openInfoWindow.close(); // Close the existing info window
});
*/
}
function openMarker(id){
google.maps.event.trigger(markers[id], 'click');
}
function initialize() {
var officeLocationMap; // Set a variable for the map
// Setup the map options
var mapOptions = {
center : new google.maps.LatLng(44.0378939,-92.4605057),
zoom : 14,
scrollwheel: false,
draggable: false,
mapTypeId : google.maps.MapTypeId.ROADMAP
};
// Create the map
var map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
// Locations - This is an array of objects that contain the data used to generate the markers and the infoWindows
var locations = [
{
name: "",
lat: 44.0378939,
lng: -92.4605057,
phone: '800-551-3292',
local: '507-424-3700',
fax: '320-252-0971',
address: {
addr1: '1500 1st Ave NE, Suite 111-B',
addr2: null,
city: 'Rochester',
state: 'MN',
zip: '55906'
}
}
];
// Loop through each location
for (var i=0; i<locations.length; i++) {
// Get the current location from the array
var loc = locations[i];
// Create the location
var latLng = new google.maps.LatLng(loc.lat, loc.lng);
// Create the marker
var marker = new google.maps.Marker({
position: latLng,
map: map,
title: loc.name,
//icon: markerIcon
});
// Push the marker to the 'markers' array
markers.push(marker);
var lnkPhone = '';
// Create the html for this marker's info window
var html = ''+loc.name+'
';
if(loc.phone) { lnkPhone = loc.phone;
html += 'Toll Free: '+loc.phone+''; }
if(loc.local) { lnkPhone = loc.local;
html += 'Local: '+loc.local+''; }
if(loc.fax) {
html += 'Fax: '+loc.fax+''; }
html += '';
html += 'Address:
';
html += ''+loc.address.addr1+'';
if(loc.address.addr2) {
html += ''+loc.address.addr2+''; }
html += '';
html += ''+loc.address.city+'';
html += ''+loc.address.state+'';
html += ''+loc.address.zip+'';
html += '';
html += '';
html = '