var appDirectory="gisweb",appUrl="gis.lakecountyfl.gov/"+appDirectory,rootUrl101="https://gis.lakecountyfl.gov/lakegis/rest/services/",lakegis=lakegis||{version:"1.2.4",taxParcelLayerNum:20,$mapDiv:"",$measureBox:"",$panelMeasure:"",$panel:"",$tocDiv:"",$tocDiv2:"",$scaleBar:"",$right:"",$left:"",$arrowRight:"",$arrowLeft:"",spatialReference:2881,urlParams:null,initialPageLoad:!0,apiLocation:appUrl+"/Scripts/3.13",activeTool:"",urlPA:"https://www.lakecopropappr.com/property-details.aspx?altkey=",urlTax:"https://lake.county-taxes.com/public/real_estate/alternate_key_redirect?alternate_key=",urlPermits:"https://c.lakecountyfl.gov/offices/building_services/permit_activity_reports/permit_search_altkey.aspx?altkey=",urlSaleRecord:"https://officialrecords.lakecountyclerk.org/Details/GetDocumentByBookPage/O/",urlMyPublicServices:"https://gis.lakecountyfl.gov/MyPublicServices/?a=",urlFema:"https://msc.fema.gov/portal/search?AddressQuery=",x:"x",googleApiKey:"AIzaSyAvtLAmA1zbKZdlsxTbzF0Vy7X_fYjLP7w",lastTipNumber:0,tipsViewModel:undefined,tips:undefined,checkStatus:function(){$.ajax({url:rootUrl101+"InteractiveMap/MapServer/?f=json",type:"POST",dataType:"jsonp",success:function(n){console.log("lakegis.checkStatus success");n.error&&guiders.show("mapServiceError")},error:function(){guiders.show("mapServiceError")}})},setInitialValues:function(){lakegis.$mapDiv=$("#mapDiv");lakegis.$measureBox=$("#measureBox");lakegis.$panelMeasure=$("#panel-measure");lakegis.$panel=$("#panel");lakegis.$tocDiv=$("#tocDiv");lakegis.$tocDiv2=$("#tocDiv2");lakegis.$scaleBar=$("#scalebar");lakegis.$right=$("#right");lakegis.$left=$("#left");lakegis.$arrowRight=$("#arrow-views");lakegis.$arrowLeft=$("#arrow-left");lakegis.configuration.symbols.selection=new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0,.55]),3),new dojo.Color([110,62,73,.45]));lakegis.configuration.symbols.buffer=new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([245,245,39,.55]),4),new dojo.Color([245,245,39,.15]));lakegis.map.resize();lakegis.tips=new lakegis.models.Tips;lakegis.tipsViewModel=new lakegis.models.TipsViewModel(lakegis.tips);ko.applyBindings(lakegis.tipsViewModel)},queryParams:{x:null,y:null,query:null,level:null},checkUrl:function(){(window.onpopstate=function(){var n;window.location.hash.length>0?(console.log("hash detected"),n=window.location.hash.substring(2)):n=window.location.search.substring(1);var t,r=/\+/g,u=/([^&=]+)=?([^&]*)/g,i=function(n){return decodeURIComponent(n.replace(r," "))},f=n;for(lakegis.urlParams={};t=u.exec(f);)lakegis.urlParams[i(t[1])]=i(t[2])})();lakegis.urlParams.x&&(lakegis.queryParams.x=lakegis.urlParams.x);lakegis.urlParams.y&&(lakegis.queryParams.y=lakegis.urlParams.y);lakegis.urlParams.l&&(lakegis.queryParams.level=lakegis.urlParams.l);lakegis.urlParams.query&&(lakegis.queryParams.query=lakegis.urlParams.query,$("#uSearch").val(lakegis.queryParams.query),uSearch(lakegis.queryParams.query));lakegis.queryParams.x&&lakegis.queryParams.y&&lakegis.queryParams.level&&map.centerAndZoom(new esri.geometry.Point(Number(lakegis.queryParams.x),Number(lakegis.queryParams.y),new esri.SpatialReference({wkid:lakegis.spatialReference})),lakegis.queryParams.level)}}