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b3B,SAAS4B,KAAKC,YAAYJ,EAC9B,G","sources":["webpack://floordepot/./wwwroot/tenant/floordepot/app/pages/customerservice/outstores.ts"],"sourcesContent":["/// <reference types=\"@types/googlemaps\" />\n\nexport {}\n\nfunction initialize() {\n    var map;\n\n    var bounds = new google.maps.LatLngBounds();\n    var mapOptions: google.maps.MapOptions = {};\n    mapOptions.mapTypeId = google.maps.MapTypeId.ROADMAP;\n\n    // Display a map on the page\n    map = new google.maps.Map(document.getElementById(\"map_canvas\"), mapOptions);\n    map.setTilt(45);\n\n    // Multiple Markers\n    var markers = [\n        ['Floor Depot - Birmingham', 52.486901, -1.8703806],\n        ['Floor Depot - Stoke-on-Trent', 53.020429, -2.1632492],\n        ['Floor Depot - Bilston', 52.5731311, -2.0988953],\n        ['Floor Depot - Walsall', 52.621327, -1.8943729],\n\n    ];\n\n    // Info Window Content\n    var infoWindowContent = [\n        ['<div class=\"info_content\">' +\n            '<h3>Birmingham Store</h3>' +\n            '<p>Visit the biggest clearance flooring store in Birmingham, with hundreds of ranges reduced to unbeatable prices. Nearly all stock is in store and ready to take away the same day. Local delivery & fitting service available in store.<br /> <br />Floor Depot<br />Unit 16, Rea Business Park<br />Inkerman Street<br />Birmingham<br />B7 4SH</p>' + '</div>'],\n        ['<div class=\"info_content\">' +\n            '<h3>Stoke-on-Trent Store</h3>' +\n            '<p>Fully stocked clearance flooring store based in the heart of Stoke-on-Trent, offering a huge range of laminates, real woods, LVT flooring, underlays and all the accessories at discounted prices. Local delivery & fitting service available in store.<br /><br />Your Flooring Depot<br />622 Leek Road<br />Hanley<br />Stoke-on-Trent<br />ST1 3NQ</p>' + '</div>'],\n        ['<div class=\"info_content\">' +\n            '<h3>Bilston Store</h3>' +\n            '<p>Fully stocked clearance flooring store based in the heart of Bilston in Wolverhampton, offering a huge range of laminates, real woods, LVT flooring, underlays and all the accessories at discounted prices. Local delivery & fitting service available in store.<br /><br />Floor Depot<br />370 Bilston Road<br />Bilston<br />Wolverhampton<br />WV2 2NW</p>' + '</div>'],\n        ['<div class=\"info_content\">' +\n            '<h3>Walsall Store</h3>' +\n            '<p>Fully stocked clearance flooring store based in Aldridge, Walsall. Offering a huge range of laminates, real woods, LVT flooring, underlays and all the accessories at discounted prices. Local delivery & fitting service available in store.<br /><br />Floor Depot<br />18 Chester Road<br />Walsall<br />WS9 9HH</p>' + '</div>']\n    ];\n\n    // Display multiple markers on a map\n    var infoWindow = new google.maps.InfoWindow(), marker, i;\n\n    // Loop through our array of markers & place each one on the map  \n    for (i = 0; i < markers.length; i++) {\n        var position = new google.maps.LatLng(markers[i][1] as number, markers[i][2] as number);\n        bounds.extend(position);\n        marker = new google.maps.Marker({\n            position: position,\n            map: map,\n            title: markers[i][0] as string\n        });\n\n        // Allow each marker to have an info window    \n        google.maps.event.addListener(marker, 'click', (function (marker, i) {\n            return function () {\n                infoWindow.setContent(infoWindowContent[i][0]);\n                infoWindow.open(map, marker);\n            }\n        })(marker, i));\n\n        // Automatically center the map fitting all markers on the screen\n        map.fitBounds(bounds);\n        map.setZoom(9);\n    }\n\n    // Override our map zoom level once our fitBounds function runs (Make sure it only runs once)\n    var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function (event) {\n        this.setZoom(9);\n        google.maps.event.removeListener(boundsListener);\n    });\n\n};\n\nwindow['initialize'] = initialize;\n\n$(function () {\n    // Asynchronously Load the map API \n    var script = document.createElement('script');\n    script.src = \"//maps.googleapis.com/maps/api/js?key=AIzaSyDAjfh0Zd2mRwgneePw7Narmt8dIO6oOfM&callback=initialize\";\n    document.body.appendChild(script);\n});\n"],"names":["window","map","bounds","google","maps","LatLngBounds","mapOptions","mapTypeId","MapTypeId","ROADMAP","Map","document","getElementById","setTilt","marker","i","markers","infoWindowContent","infoWindow","InfoWindow","length","position","LatLng","extend","Marker","title","event","addListener","setContent","open","fitBounds","setZoom","boundsListener","this","removeListener","$","script","createElement","src","body","appendChild"],"sourceRoot":""}