﻿//alert("appInit.js")

$(document).ready(
    function() {

        var configurationSettings = new com.timmons.srl.configManager.ConfigurationSettings();        
        configurationSettings.apiType = com.timmons.srl.configManager.apiType.ESRI;        
        configurationSettings.center = { x : -92.029444, y : 30.213889};            
//        configurationSettings.extent = {
//            xmax : 3128428.3845849,
//            ymax : 764338.509924345,
//            xmin : 2958066.54026164,
//            ymin : 488120.762332274
//        };
        configurationSettings.extent = {
            xmax : 3213287.109526849,
            ymax : 693760.2729093772,
            xmin : 2913590.8533894517,
            ymin : 555651.3991133416
        }
        configurationSettings.locatorServices = [
            {
                apiType: com.timmons.srl.configManager.apiType.ESRI,
                locatorType : com.timmons.srl.configManager.locatorType.geocoder,
                url: "http://gis2.lafayettela.gov/ArcGIS/rest/services/CWCompositeGeocoding/GeocodeServer"
            }
        ];            
        configurationSettings.mapServices = [
            {
                apiType: com.timmons.srl.configManager.apiType.ESRI,
                layerType: com.timmons.srl.configManager.layerType.dynamicMapServiceLayer,
                url: "http://gis2.lafayettela.gov/ArcGIS/rest/services/CWCachedMap/MapServer"
            }
        ];

//From: Bryan Kelley 
//Sent: Thursday, October 29, 2009 9:19 PM
//To: Steve Schwabe
//Subject: RE: SRL services comparison

//Steve,

//Just to confirm my understanding of the request...our tasks should be...

//1) Publish a demo site for Lafayette with the existing geocoding service and http://gis2.lafayettela.gov/ArcGIS/rest/services/CWPublicCachingmxd/MapServer as the map service.

//2) Publish an additional demo site for Lafayette with the existing geocoding service and http://gis2.lafayettela.gov/ArcGIS/rest/services/CWCachedMap/MapServer as the map service

//Lafayette will compare / contrast the two map services within Request Logistics and determine which map service best suits their needs. We can do this. However, we will need to re-provision that environment soon. I can hold that off for about a week or so once we get it wired up. Please ask Lafayette to review the site during that period of time. After they make their evaluation, we can task other apps on those servers.

//We can get this stood up in the next day or two. I will email you with the URL's once they are available.

//Thanks,
//Bryan

        configurationSettings.serviceAreas = [
            {
                City : "Acadia Parish",
                State : "LA"
            },    
            {
                City : "Broussard",
                State : "LA"
            },
            {
                City : "Carencro",
                State : "LA"
            },
            {
                City : "Duson",
                State : "LA"
            },
            {
                City : "Lafayette",
                State : "LA"
            },        
            {
                City : "Lafayette Parish",
                State : "LA"
            },           
            {
                City : "Scott",
                State : "LA"
            },          
            {
                City : "Youngsville",
                State : "LA"
            }
        ];
        
        configurationSettings.zoomLevel = 13;
            
        _srlManager = new com.timmons.srl.srlManager();
        _srlManager.setConfigurationSettings(configurationSettings);        
        _srlManager.initialize();                
    }
);
