Dear Esri-Users,
the checkbox of our application activate 1 layer. I’m interested how to activate 2 layers with the same checkbox.
This is our application: http://gis.uba.de/website/luft/index.html .
The Checkbox (named as "Spots") is hidden, you can select "Schadtsoff" -> "Stickstoffdioxid" and choose a year. Look at the screenshot in the attachment please.
Thank you so much!
Best regards!
Konrad
------------------------------
Code-Snippets:
//(1)
// Featurelayer Spots NO2 2013
SPno213 = new esri.layers.FeatureLayer("http://atlas-bp2:6080/arcgis/rest/services/Lu/WMS_UBA_Lu_OI_Spots_Test/MapServer/5" && "http://atlas-bp2:6080/arcgis/rest/services/Lu/WMS_UBA_Lu_OI_Spots_Test/MapServer/10", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
id: "idSP_5",
visible: true
});
//(2)
if(selectJahr.value == 400)
addOILayer(selectSchad,StickLayer00,StickLayer00I,SPno200,2000,4,16,30,44,checkBox,selectAuswert);
else if(selectJahr.value == 401)
else if(selectJahr.value == 413)
addOILayer(selectSchad,StickLayer13,StickLayer13I,SPno213,2013,3,12,21,32,checkBox,selectAuswert);