Just a question: Can an opacity be set to the KML or vector layers without individually modifying each marker?
Current method of creating the KML layer below (it works, don't know if I should be doing it differently though).
/* Begin KML handling functions */
function createKMLLayer(id, url, name) {
if(document.getElementById(id).disabled == false) {
if ( document.getElementById(id).checked == true ) {
window[id] = new OpenLayers.Layer.GML(name, url,{format: OpenLayers.Format.KML,formatOptions: {extractStyles:true,extractAttributes:true}});
map.addLayer(window[id]);
selectControl = new OpenLayers.Control.SelectFeature(window[id],
{onSelect: onFeatureSelect, onUnselect: onFeatureUnselect});
map.addControl(selectControl);
selectControl.activate();
} else {
map.removeLayer(window[id]);
}
}
}
Thanks,
Levii
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
