I'm using a javascript object to keep track of the current WMS layer a user
is querying against:

myObj.query.layer = 'volcanoes';

and am using eval to convert this string back to the layer variable name for
a getFeatureInfo request:

var queryLyr = eval(window.myObj.query.layer);

but know that using eval() is generally frowned upon and am wondering if
there is another way to do this?
Thank you.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to