//////////////////////// // gmap.v3.js 1.0.3 // // 2012-09-02 // // SYNCK GRAPHICA // // www.synck.com // //////////////////////// document.write(''); function addEventSet(elm,listener,fn){ try{ elm.addEventListener(listener,fn,false); } catch(e){ elm.attachEvent("on"+listener,fn); } } var gmaps = new Array(); function gmaps_init(){ var tagObj = document.getElementsByTagName("div"); for(var i=0;i 0){ this.Lat = this.MakerLat / this.Makers.length; this.Lng = this.MakerLng / this.Makers.length; } else { this.Makers[0] = new Object(); this.Makers[0].Title = this.Title; this.Makers[0].Lat = this.Lat; this.Makers[0].Lng = this.Lng; this.Makers[0].HTML = this.container.innerHTML; this.Makers[0].Icon = this.Icon; this.Makers[0].Window = this.Window; } this.container.style.width = this.Width + "px"; this.container.style.height = this.Height + "px"; var myLatlng = new google.maps.LatLng(this.Lat,this.Lng); var myOptions = { zoom: this.Zoom, center: myLatlng, mapTypeId: google.maps.MapTypeId[this.Type] } this.map = new google.maps.Map(obj,myOptions); for(var i=0;i 0 && zoom < 20) this.map.setZoom(zoom); } this.att = function(obj,att){ if(obj.getAttribute(att)!=undefined) return obj.getAttribute(att); else return this.Default[att.replace("data-","")]; } this.mobile = function(){ var n = navigator.userAgent; if(n.indexOf('Mobile') > -1 && n.indexOf('iPad') == -1){ if(this.MobileWidth != null) this.Width = this.MobileWidth; if(this.MobileHeight != null) this.Height = this.MobileHeight; } } this.init(obj); } addEventSet(window,"load",function(){gmaps_init();});