I'm using a javascript object to keep track of the current WMS layer a user is querying against:<br><br>myObj.query.layer = 'volcanoes';<br><br>and am using eval to convert this string back to the layer variable name for a getFeatureInfo request:<br>
<br>var queryLyr = eval(window.myObj.query.layer);<br><br>but know that using eval() is generally frowned upon and am wondering if there is another way to do this?<br>Thank you.<br>