This is just off the cuff, but maybe look at the code for the Buffer widget; it creates and inserts a layer into the runtime / session map.<div><br></div><div>Jason<br><br><div class="gmail_quote">On 7 May 2010 16:15, miansi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>How can I implement same functionality I had in my AJAX Viewer (temporarily<br>
layers)?<br><br></blockquote></div></div>