ClickCease /*<![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(45.559598,-94.160407), zoom : 7, 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: "Duluth", lat: 46.7840868, lng: -92.1014758, phone: '800-551-3292', local: '218-822-4502', fax: '320-252-0971', address: { addr1: '11 East Superior Street, 5th floor', addr2: 'Suite 532', city: 'Duluth', state: 'MN', zip: '55802' } }, { name: "Eden Prairie", lat: 44.88922, lng: -93.419475, phone: '800-551-3292', local: '612-843-0524', fax: '320-252-0971', address: { addr1: '7525 Mitchell Road.', addr2: 'Suite 208', city: 'Eden Prairie', state: 'MN', zip: '55344' } }, { name: "Eagan", lat: 44.856507, lng: -93.130271, phone: '800-551-3292', local: '612-843-0525', fax: '320-252-0971', address: { addr1: '860 Blue Gentian Road', addr2: 'Suite 200', city: 'Eagan', state: 'MN', zip: '55121' } }, { name: "Mankato", lat: 44.165618, lng: -94.004572, phone: '800-551-3292', local: '507-405-1110', fax: '320-252-0971', address: { addr1: '11 Civic Center Plaza', addr2: 'Suite 201B', city: 'Mankato', state: 'MN', zip: '56001' } }, { name: "Roseville", lat: 45.011343, lng: -93.19891, phone: '800-551-3292', local: '612-843-0523', fax: '320-252-0971', address: { addr1: '2780 2780 Snelling Avenue', addr2: 'Suite 302', city: 'Roseville', state: 'MN', zip: '55113' } }, { name: "Rochester", lat: 44.0378939, lng: -92.4605057, phone: '800-551-3292', local: '507-424-3700', fax: '320-252-0971', address: { addr1: '1500 1st Avenue Northeast', city: 'Rochester', state: 'MN', zip: '55906' } }, { name: "St. Cloud", lat: 45.559598, lng: -94.160407, phone: '800-551-3292', local: '320-252-0330', fax: '320-252-0971', address: { addr1: '13 7th Avenue S', addr2: null, city: 'St. Cloud', state: 'MN', zip: '56301-4259' } }, { name: "Brainerd", lat: 46.3539649, lng: -94.2138051, phone: '800-551-3292', local: '218-822-3300', fax: '320-252-0971', address: { addr1: '211 4th Street South', addr2: null, city: 'Brainerd', state: 'MN', zip: '56401' } }, { name: "Maple Grove", lat: 45.071649, lng: -93.4449214, phone: '800-551-3292', local: '612-843-0529', fax: '320-252-0971', address: { addr1: '6445 Sycamore Court North', city: 'Maple Grove', state: 'MN', zip: '55369' } } ]; // 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 = '
'+html+'
'; // Create the info window for this marker var infoWindow = new google.maps.InfoWindow({content: html}); // Setup a listener to open the info window bindInfoWindow(marker, map, infoWindow, html); // Could also use a custom infoBox // http://stackoverflow.com/questions/7616666/google-maps-api-v3-custom-styles-for-infowindow/7628522#7628522 // Add location to map list var mapLink = ''+loc.name+''; jQuery('#map-list').append(mapLink); /*google.maps.event.addListener($('#mapLink'+i), 'click', function() { map.panTo(marker.getPosition()); infowindow.open(map,marker); });*/ /*$('#mapLink'+i).click(function(e) { e.preventDefault(); map.setCenter(marker.getPosition()); infoWindow.open(map,marker); return false; });*/ //bindMapLink($('#mapLink'+i), map, infoWindow, html); } google.maps.event.addListener(map, "click", function (event) { var latitude = event.latLng.lat(); var longitude = event.latLng.lng(); var center = map.getCenter(); console.log( 'click coords: ' + latitude + ', ' + longitude ); console.log( 'center coords: ' + center.lat() + ', ' + center.lng() ); }); var drawingManager = new google.maps.drawing.DrawingManager({ //drawingMode: google.maps.drawing.OverlayType.POLYGON, // Set default tool drawingControl: true, drawingControlOptions: { position: google.maps.ControlPosition.TOP_CENTER, drawingModes: [ //google.maps.drawing.OverlayType.MARKER, //google.maps.drawing.OverlayType.CIRCLE, google.maps.drawing.OverlayType.POLYGON, //google.maps.drawing.OverlayType.POLYLINE, //google.maps.drawing.OverlayType.RECTANGLE ] }, markerOptions: { icon: 'images/beachflag.png' }, circleOptions: { fillColor: '#ffff00', fillOpacity: 1, strokeWeight: 5, clickable: false, editable: true, zIndex: 1 }, polygonOptions: { editable: true, } }); drawingManager.setMap(map); google.maps.event.addListener(drawingManager, 'polygoncomplete', function (polygon) { google.maps.event.addListener(polygon, "click", function (event) { console.log('beerShape clicked'); var coordinates = (polygon.getPath().getArray()); jQuery('#map-coords').text(coordinates).fadeIn(); if ( polygon.getEditable() ) { console.log('disabling edit mode - beerShape'); polygon.setOptions({ editable:false, zIndex:1, fillOpacity:0.35 }); jQuery('#map-coords').text(coordinates).fadeIn(); } else { console.log('enabeling edit mode - beerShape'); polygon.setOptions({ editable:true, zIndex:1, fillOpacity:0.65 }); jQuery('#map-coords').text(coordinates).fadeOut(); } }); }); } google.maps.event.addDomListener(window, 'load', initialize); /*]]>*/

Offices located where you are

BRAINERD

Click Here For Driving Directions

LifeBack Law Firm, P.A.
211 4th Street South
Brainerd, MN 56401
218-822-3300

DULUTH

Click Here For Driving Directions

LifeBack Law Firm, P.A.
11 East Superior St, 5th Floor, Suite 532
Duluth, MN 55802
(218) 822-4502

EAGAN

Click Here For Driving Directions

LifeBack Law Firm, P.A.
4480 Erin Drive
Eagan, MN 55121
612-843-0525

EDEN PRAIRIE

LifeBack Law Firm, P.A.
7525 Mitchell Road, Suite 208
Eden Prairie, MN 55344
612-843-0524

ROSEVILLE

Click Here For Driving Directions

LifeBack Law Firm, P.A.
2780 Snelling Avenue, Suite 302
Roseville, MN 55113
612-843-0523

ST CLOUD

Click Here For Driving Directions

LifeBack Law Firm, P.A
13 7th Avenue S
St. Cloud, MN 56301
320-252-0330

MAPLE GROVE

Click Here For Driving Directions

LifeBack Law Firm, P.A
6445 Sycamore Court North

Maple Grove, MN 55369
612-843-0529

MANkato

LifeBack Law Firm, P.A
11 Civic Center Plaza, Suite 201B
Mankato, MN 56001
(800) 551-3292

Rochester

LifeBack Law Firm, P.A.
1500 1st Ave NE, Suite 111-B
Rochester, MN 55906
507-424-3700





Free Bankruptcy Consultation




Free Bankruptcy Consultation