[OpenLayers-Users] How to extract attributes on layer load ?
Volodymer Grigorenko
wolgri at ya.ru
Wed Jul 16 02:26:10 EDT 2008
oh sory its simplier
> Му function
function func1(mnum,name,select){
alert(mnum);
html = "" features = map.layers[mnum].features;
if (features.length == 0){html = ""}
else {
html += "<p>"name"</p><div class=\"info\"><fieldset>";
for (var f = 0; f < features.length; f++) { html +="<input value=\""+features[f]+"\" type=\"checkbox\">"
+features[f].attributes["datsetid"]+"</br>";
} html += "</fieldset></div>" }
document.getElementById(select).innerHTML = html;
}
wfs_e.events.on({ 'loadend': function(){func1(3,"Mid","div_mid")}});
More information about the Users
mailing list