-
Notifications
You must be signed in to change notification settings - Fork 0
/
map-custom.min.js
1 lines (1 loc) · 988 Bytes
/
map-custom.min.js
1
!function(o){"use strict";o(document).ready(function(){var a=o("#google_map"),e=a.attr("data-pin"),t=a.attr("data-map-x"),n=a.attr("data-map-y"),l=a.attr("data-scrollwhell"),g=a.attr("data-draggable");null==e&&(e="images/icons/location.png"),null!=t&&null!=n||(t=40.007749,n=-93.266572),null==l&&(l=0),null==g&&(g=0);var r=[],i=t,p=n,s=[['<div class="infobox"><p>Now that you visited our website, how <br>about checking out our office too?</p></div>',i,p,2]];if(void 0!==a)var c=new google.maps.Map(document.getElementById("google_map"),{zoom:15,scrollwheel:l,navigationControl:!0,mapTypeControl:!1,scaleControl:!1,draggable:g,styles:r,center:new google.maps.LatLng(i,p),mapTypeId:google.maps.MapTypeId.ROADMAP});var d,m,u=new google.maps.InfoWindow;for(m=0;m<s.length;m++)d=new google.maps.Marker({position:new google.maps.LatLng(s[m][1],s[m][2]),map:c,icon:e}),google.maps.event.addListener(d,"click",function(o,a){return function(){u.setContent(s[a][0]),u.open(c,o)}}(d,m))})}(jQuery);