Preview: map-helper.js
Size: 633 B
/home/getspomw/itechservicellc.com/public/js/map-helper.js
"use strict";function gMap(){$(".google-map").length&&$(".google-map").each((function(){var a,t=$(this),e=t.attr("id"),i=t.data("map-lat"),n=t.data("map-lng"),o=t.data("icon-path"),l=t.data("map-zoom"),r=(t.data("map-title"),t.data("markers"));if(!l)l=15;a=new GMaps({div:"#"+e,scrollwheel:!1,lat:i,lng:n,styles:[{featureType:"administrative.country",elementType:"geometry",stylers:[{visibility:"simplified"},{hue:"#ff0000"}]}],zoom:l}),o&&$.each(r,(function(t,e){var i;(t=e)[2]&&(i=t[2]),t[3]||(t[3]=o),a.addMarker({icon:t[3],lat:t[0],lng:t[1],infoWindow:{content:i}})}))}))}jQuery(document).on("ready",(function(){jQuery,gMap()}));
Directory Contents
Dirs: 1 × Files: 22