Ok, i have a backwards question:
How "DO" i include the sublayers in the legend?
here is my code bringing in the layer that has the sublayers:
-----Layer: ImprovementsAll (ID: 17)
Sub Layers:
ImprovementsStanding
ImprovementsNoStatus
ImprovementsConstruction
ImprovementsMaintained
ImprovementsPaved
ImprovementsPlanning
ImprovementsRemoved
ImprovementsSold
ImprovementsUnpaved
Name: ImprovementsAll
Display Field:
Type: Group Layer
//add the improvement data
buildingsLayer = new FeatureLayer(getUrlKlondike("ImprovementsAll"), {
mode: FeatureLayer.MODE_ONDEMAND,
id: 'ImprovementsAll',
visible: true,
infoTemplate: template1,
outFields: ["*"]
});
legendLayers.push({layer: buildingsLayer, title: 'Improvements:'});
when i add the buildingsLayer to:
map.addLayers([easementsLayer, easementsSelectLayer, disposalsLayer,buildingsLayer]};
it makes it so no layers are visible and the map hangs up. Any help would be greatly appreciated. Thanks!