Robert,
I do have a few other questions (3) about my complete code for this project and was wondering if you wouldn't mind a little further guidance.
One:
I have a home button command that I'm trying to get to clear out the results from the results div tag. Here is what I have that doesn't seem to work with this particular application. It gives me an error finding the (results.rows). Any ideas how to clear out this data?
Here is my goHome.js
//
Resets the Map to its initial state with no routes selected and accordian pane back to default
function goHome(){
// Acitivates the Legend Accordian Tab
var container = dijit.byId("container");
container.selectChild("legendPane", true);
// This will remove old values in Routes Within 1/4 Mile Div Tag
var results = document.getElementById("results");
var rowCount = results.rows.length;
for (var x=rowCount-1; x>0; x--)
{
results.deleteRow(x);
}
// Removes Any simpleLineSymbols and Any simplePointSymbols
map.graphics.clear();
// Closes any open infoWindows
map.infoWindow.hide();
// Zoom to Map Extent
map.setExtent(mapExtent);
// Clears any address entered into Address Search Box
document.getElementById("search_input").value="";
}
TWO:
When creating my busRoutes layer, I don't want the map to allow users to click anywhere and it say (No Information). I also tried to use the on mouse-over for this layer and can't seem to get it to work. Any ideas on this one.
//
Creating the Template for Bus Route
busRouteContent = ("Name", "<tr><td><a
href='${TRAN_GD_PDF}'
target='_blank'>${NAME}</a></tr></td>");
busRouteTemplate = new esri.InfoTemplate;
busRouteTemplate.setContent(busRouteContent);
busRouteTemplate.setTitle("Bus
Route: ${ROUTE}");
busRoutes = new ArcGISDynamicMapServiceLayer("http://gis.rtcsnv.com/arcgis/rest/services/Maps/PROD_ADA_CERT/MapServer",
{id:"Routes"});
busRoutes.setInfoTemplates({
2: { infoTemplate: busRouteTemplate
}
});
busRoutes.setVisibleLayers([2]);
busRoutes.on("mouse-over", function()
{
map.setMapCursor("pointer");
});
busRoutes.on("mouse-out", function()
{
map.setMapCursor("default");
});
THREE:
In my Legend list this dynamic map service layers shows up using the application name and then its layer name. How can I remove the application part from the layer name. It currently shows up as: PROD_ADA_CERT RTC Bus Routes. I only want it to say RTC Bus Routes.