// URL Parameters //

var baseMapLayerUrl = "http://gis.cravencountync.gov/ArcGIS/rest/services/Map2/MapServer";

//var baseMapLayerUrl = "http://gis.cravencountync.gov/ArcGIS/rest/services/Map_draw_test/MapServer";


var geoServiceUrl = "http://gis.cravencountync.gov/arcgis/rest/services/Geometry/GeometryServer"; 
var layoutDataHandlerURL = "http://gis.cravencountync.gov/giswebservices/MergeAndOutput.ashx";

var parcelDataHandlerURL = "http://gis.cravencountync.gov/GISWebservices/ParcelDataHandler.ashx";
var parcelReportHandlerURL = "http://gis.cravencountync.gov/giswebservices/ReportHandler.ashx";
var cravenWebServiceURL = "http://gis.cravencountync.gov/giswebservices/WebService.asmx";

var searchURL = baseMapLayerUrl;
var identifyURL = baseMapLayerUrl;
var bldgDummyLayerURL = baseMapLayerUrl;

var legendURL = "";
var soapServiceUrl = "http://gis.cravencountync.gov/ArcGIS/services/Map2/MapServer";


// additional map layers
var mapLayers = [
    {
        label: "dimensions",
        url: "http://gis.cravencountync.gov/ArcGIS/rest/services/Dimensions/MapServer",
        type: "dynamic",alpha: 1,
        visible: true
    }, {
        label: "RoadNames",
        url: "http://gis.cravencountync.gov/ArcGIS/rest/services/MiscAnno/MapServer",
        type: "dynamic", alpha: 1,
        visible: true
    } 
];

// mva 8/3/2010 changed acreage field from PACREA to TOTAL_ACREAGE
 
// Parcel Layer Parameters  //
var parcelsLayerName = "Parcels";
var parcels_layerID = -1;
var parcelSearchLayerURL;
var parcelFields = {
    PID: "PID",
    OWNER: "PANAME",
    ADDRESS: "PROP_ADD",
    TOWNSHIP: "PID",
    CITY: "PACITY",
    TOTALVAL: "TOTVAL",
    ACREAGE: "TOTAL_ACREAGE",
    SALEDATE: "SALE_DATE",
    LANDUSE: "PLUSC",
    IMPROVEMENTVAL: "TOTBLD",
    BOOK: "PABOOK",
    PAGE: "PAPAGE",
    SUBDIVISION: "SUBGROUP",
    HOUSENUM: "PASTNU",
    STREETNAME: "PASTNA",
    STREETDIR: "PASTDR",
    STREETTYPE: "PASTAB"
}

var parcels_return_fields = ["OBJECTID", "PANAME", "PID", "PROP_ADD"]; ;
var parcels_display_field = "PANAME";
var parcels_quickFind_Fields = ["PANAME", "PID", "PROP_ADD"];

// city Parameters
var cityLayerName = "city_limits_shaded";
var cityLayerID = -1;

// This is the name of the SubDivisions Feature layer in the map.
// Subgroup parameters
var subgroupLayerID = -1;
var subgroupLayerName = "SUBGROUPS";

// streets layers
var streetsLayerName = "Road Centerlines";
var streetsLayerID = -1;

// Identify Parameters
var layersToIdentify;
var defaultLayersToIdentify = [1,2,3,4,9,10,11,12];
var calloutIdealWidth = 300;
var calloutIdealHeight = 275;
var pointerHeight = 50;
var fieldsNotToShow = ["OBJECTID", "SHAPE", "ID", "ORI_NUM", "GLOBALID", "SHAPE_LENGTH", "SHAPE_AREA", "SHAPE.LEN", "SHAPE.AREA"];
var specialFields = ["PID","AICUZ_DIS", "DESCRIPTION", "LDN_LIST", "APZ_LIST", "DEED", "SCHOOL_URL", "HIG_URL", "MID_URL", "ELM_URL", "MONUMENT_P", "PARCEL_NUM", "AIRPORT_ID", "DEEDINFO", "CITY", "CITYNAME", "MAPNUMBER", "POLLLINK", "Link to Recreation & Parks website", "Link to Park website","FIRM_Panel","WASTE_URL"];

// copyright text
var copyrighttext = "Craven County does NOT warrant the information shown on this page and should be used ONLY for tax assessment purposes.";
var msgText = "Public GIS website 3.0  Please e-mail comments, suggestions, etc. to lvalenti@cravencountync.gov";
// var msgText = "Public Website X.  Please e-mail comments, suggestions, etc. to lvalenti@cravencountync.gov          Access to this site maybe interupted from 5:00 p.m. Friday April 9th thru 5:00 p.m. Saturday April 10th due to communication lines being moved in downtown New Bern.";
// var msgText = "Public Website X.  This site will not be available from 5:00 p.m. April 5th thru 5:00 p.m. April 7th.";
//var msgText = "Public Website X.  The building values are available when using the Identify tool or from the Property Info tab, however they are not currently visible on the PRC or Buildings tab.";
var isDebugMode = true;


// Map Legend
// Legend properties - Make sure these are all CAPS
// parameters: 
//     mapname = name of the map service layer (i.e. id property on the layer list coming from map object)
//     layernames = list of map layer name (MUST BE CAPS)
//     exclude = whether to show the layernames or not show them [ true | false ]

// Renamed the following excludeList.push("Lot Numbers");  to excludeList.push("Recorded Survey Lot#'s");

var excludeList = [];
excludeList.push("Recorded Survey Lot#s");
excludeList.push("Owner Names (Blue text)");
excludeList.push("Deed Info (Light Red text)");
excludeList.push("Land/Total Value (Dark Green text)");
excludeList.push("Sale Amount/Date (Orange text)");
excludeList.push("Property Address (Dark Red text)");
excludeList.push("E911 Addresses (Purple text)");
excludeList.push("Soils");
excludeList.push("Land Cover");
excludeList.push("Parcel Hooks");

var legends = [
     {
        mapname: "map",
        soapUrl: "http://gis.cravencountync.gov/ArcGIS/services/map2/MapServer",
        layernames: excludeList,
        exclude: true,
        mapLayer: null
     }
]

//function loadTocItems() {    

//    var serverURL = "http://gis.cravencountync.gov/";

//    // Text(label), Category,map service name, layers, can identify, metadata url, download url, is a Map Service
//    AddToTOC("Parcel IDs (Black text)","Labels", "map", "" , false, "", "", false);
//    AddToTOC("Owner Names (Blue Text)","Labels", "map", "" , false, "", "");
//    AddToTOC("Deed Info (Light Red Text)","Labels", "map", "" , false, "", "");
//    AddToTOC("Land/Total Value (Dark Green text)","Labels", "map", "" , false, "", "");
//    AddToTOC("Sale Amount/Date (Light Green Text)","Labels", "map", "" , false, "", "");
//    AddToTOC("Property Address (Dark Red text)","Labels", "map", "" , false, "", "");
//    AddToTOC("E911 Addresses (Purple text)","Labels", "map", "" , false, "", "");
//    AddToTOC("Dimensions","Property", "dimensions", "" , false, "", "", true);
//    AddToTOC("Recorded Survey Lot#'s","Property", "map", "Lot Numbers" , false, "", "");
//    AddToTOC("Leaseholds","Property", "map", "" , true, "", "");
//    AddToTOC("Condos","Property", "map", "" , true, "", "");
//    AddToTOC("Parcels","Property", "map", "" , true, "", "");
//    AddToTOC("Land Cover","Environmental", "map", "" , true, "", "");
//    AddToTOC("Soils","Environmental", "map", "" , true, "", serverURL + "soils_disc_downloads.aspx");
//    AddToTOC("Soil Boundaries","Environmental", "map", "" , true, "", "");
//    AddToTOC("USGS Blueline Streams","Environmental", "map", "" , true, "", "");
//    AddToTOC("Flood Insurance Rate Maps","Environmental", "map", "" , true, "", "");
//    AddToTOC("Fire Stations","Emergency Services", "map", "" , true, "", "");
//    AddToTOC("Rescue Squads","Emergency Services", "map", "" , true, "", "");
//    AddToTOC("Fire Hydrants","Emergency Services", "map", "" , true, "", "");
//    AddToTOC("Fire Districts","Emergency Services", "map", "" , true, "", "");
//    AddToTOC("Five Mile Rating","Emergency Services", "map", "" , true, "", "");
//    AddToTOC("AICUZ","Eastern Carolina JLUS", "map", "" , true, "", "");
//    AddToTOC("Accident Potential","Eastern Carolina JLUS", "map", "" , true, "", "");
//    AddToTOC("Avg. Sound Levels (Ldn)","Eastern Carolina JLUS", "map", "" , true, "", "");
//    AddToTOC("School Attendance Districts","Miscellaneous", "map", "" , true, "", "");
//    AddToTOC("Schools","Miscellaneous", "map", "" , true, "", "");
//    AddToTOC("Geodetic Monuments","Miscellaneous", "map", "" , true, "", "");
//    AddToTOC("Recorded Plat/Map Book","Miscellaneous", "map", "" , true, "", "");
//    AddToTOC("Building Sketches","Miscellaneous", "map", "" , true, "", "");
//    AddToTOC("Airport","Planning", "map", "" , true, "", "");
//    AddToTOC("Billboard Owner & Reg #","Planning", "map", "" , true, "", "");
//    AddToTOC("Road Names","Base Layers", "RoadNames", "" , false, "", "", true);
//    AddToTOC("Main Highways","Base Layers", "map", "" , true, "", "");
//    AddToTOC("Road Centerlines","Base Layers", "map", "" , true, "", "");
//    AddToTOC("Parcel Hooks","Base Layers", "map", "" , true, "", "");
//    AddToTOC("Railroad","Base Layers", "map", "" , true, "", "");
//    AddToTOC("City Limits","Base Layers", "map", "City Limits,city_limits_shaded,city_limits_outline" , true, "", "");
//    AddToTOC("Craven County","Base Layers", "map", "" , false, "", "");
//    AddToTOC("USGS Topo DRGs", "Imagery", "map", "" , false, "", "")
//    AddToTOC("Ortho 1999-2000", "Imagery", "map", "" , false, "", "");
//    AddToTOC("Ortho Boundaries 2007","Imagery", "map", "" ,true, "", "");
//    AddToTOC("Ortho Photographs 2007","Imagery", "map", "" , false, "", "");
//    
//}




//function AddToTOC(text, category, mapservice, layers, canID, metadataURL, downloadURL, isService) {

//    var indx = tocLayers.length;

//    if (isService == "undefined") {
//      isService = false;
//    }
//           

//    // if the layers property is not set then, we will assume that the text property is the name of the layer.
//    if (layers == "" && !isService)
//        layers = text;
//   
//    var item = { text: text,
//            category: category,
//            layers: layers,
//            mapservice: mapservice,
//            canidentify: canID,
//            metadataurl: metadataURL,
//            downloadurl: downloadURL,
//            isService: isService,
//            layerIDs: [],
//            isValid: false
//        }

//        tocLayers.push(item);
//        return false;
//    }

    
var tocLayers = [

{
    text: "Parcel IDs (Black text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Parcel IDs (Black text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Owner Names (Blue Text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Owner Names (Blue Text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false    
}, {
    text: "Deed Info (Light Red Text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Deed Info (Light Red Text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false    
},{
    text: "Land/Total Value (Dark Green text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Land/Total Value (Dark Green text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false    
},{
    text: "Sale Amount/Date (Orange text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Sale Amount/Date (Orange text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false    
},{
    text: "Property Address (Dark Red text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Property Address (Dark Red text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false    
},{
    text: "Dimensions",
    category: "Property",
    mapservice: "dimensions",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/county_anno_disc_downloads.htm",
    isService: true,
    layerIDs: [],
    isValid: false
},{
    text: "Recorded Survey Lot#s",
    category: "Property",
    mapservice: "map",
    layers: ["Recorded Survey Lot#s"],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false 
},{
    text: "E911 Addresses (Purple text)",
    category: "Labels",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "E911 Addresses (Purple text with halo)",
    category: "Labels with halo",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false    
},{
    text: "Leaseholds",
    category: "Property",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Condos",
    category: "Property",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Parcels",
    category: "Property",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "http://gismaps.cravencounty.com/maps/datadescr-2.txt",
    downloadurl: "http://gismaps.cravencounty.com/maps/parcels_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Land Cover",
    category: "Environmental",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Soils",
    category: "Environmental",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "http://gismaps.cravencounty.com/maps/soil_code_description_info.htm",
    downloadurl: "http://gismaps.cravencounty.com/maps/soils_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Soil Boundaries",
    category: "Environmental",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "http://gismaps.cravencounty.com/maps/soil_code_description_info.htm",
    downloadurl: "http://gismaps.cravencounty.com/maps/soils_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "USGS Blueline Streams",
    category: "Environmental",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Flood Insurance Rate Maps",
    category: "Environmental",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Fire Stations",
    category: "Emergency Services",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/firestat_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Rescue Squads",
    category: "Emergency Services",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Fire Hydrants",
    category: "Emergency Services",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Fire Districts",
    category: "Emergency Services",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/firezones_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Five Mile Rating",
    category: "Emergency Services",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "AICUZ",
    category: "Eastern Carolina JLUS",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "aicuz_info.htm",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Accident Potential",
    category: "Eastern Carolina JLUS",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "accident_potential_info.htm",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Avg. Sound Levels (Ldn)",
    category: "Eastern Carolina JLUS",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "noise_info.htm",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "School Attendance Districts",
    category: "Miscellaneous",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/schattdi_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Schools",
    category: "Miscellaneous",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Geodetic Monuments",
    category: "Miscellaneous",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Recorded Plat/Map Book",
    category: "Miscellaneous",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Building Sketches",
    category: "Miscellaneous",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/building_sketches_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Coastal Carolina Regional Airport",
    category: "Planning",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Coastal Carolina Regional Airport Height Control",
    category: "Planning",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Coastal Carolina Regional Airport Landuse Zoning",
    category: "Planning",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {    
    text: "Billboard Owner & Reg #",
    category: "Planning",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Voting Sites",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "National Congressional Districts",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "State House Districts",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "State Senate District",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "New Bern Wards",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "First Craven Water District",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false                
},  {
    text: "Board of Education Districts",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Commissioner Districts",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Precincts",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "All Jurisdictions",
    category: "Elections",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false                
},  {
    text: "Hauler Areas",
    category: "Solid Waste & Recycling",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false                
},  { 
    text: "Trash Pickup",
    category: "Solid Waste & Recycling",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false                
},  {
    text: "Recycle Pickup",
    category: "Solid Waste & Recycling",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false                
},  {
    text: "Convenience Sites",
    category: "Solid Waste & Recycling",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false                
},  {
    text: "Water Trails",
    category: "Recreation & Parks",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {
    text: "Recreation Sites",
    category: "Recreation & Parks",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},  {    
    text: "Road Names",
    category: "Base Layers",
    mapservice: "RoadNames",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/county_anno_disc_downloads.htm",
    isService: true,
    layerIDs: [],
    isValid: false
}, {
    text: "Main Highways",
    category: "Base Layers",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
},{
    text: "Road Centerlines",
    category: "Base Layers",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/roadclin_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Parcel Hooks",
    category: "Base Layers",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Railroad",
    category: "Base Layers",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "City Limits",
    category: "Base Layers",
    mapservice: "map",
    layers: ["City Limits","city_limits_shaded","city_limits_outline","City_Name_Labels"],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/city_limits_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Craven County",
    category: "Base Layers",
    mapservice: "map",
    layers: ["Craven County","Township_Number_Labels"],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "USGS Topo DRGs",
    category: "Imagery",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Ortho Photographs 1999-2000",
    category: "Imagery",
    mapservice: "map",
    layers: ["Ortho Photographs 1999-2000","craven_raster.CRAVEN.orthos1999_100","craven_raster.CRAVEN.orthos1999_200","craven_raster.CRAVEN.orthos1999_400"],
    canidentify: false,
    metadataurl: "",
    downloadurl: "",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Ortho Boundaries 2007",
    category: "Imagery",
    mapservice: "map",
    layers: [],
    canidentify: true,
    metadataurl: "",
    downloadurl: "http://gismaps.cravencounty.com/maps/orth2007_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
}, {
    text: "Ortho Photographs 2007",
    category: "Imagery",
    mapservice: "map",
    layers: [],
    canidentify: false,
    metadataurl: "http://gismaps.cravencounty.com/maps/imagery-download-instructions.txt",
    downloadurl: "http://gismaps.cravencounty.com/maps/orth2007_disc_downloads.htm",
    isService: false,
    layerIDs: [],
    isValid: false
}

];    