<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>DWF Viewer API for managing selections</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I am trying to write some code to inspect the current selection using the DWF Viewer. However, I am unable to find any documentation on what comes out of the "selectionSet" property of the viewer. I see that it is a collection of some kind, but I don’t know what the type that comes out of the collection is. I consulted the "</FONT><FONT FACE="Times New Roman">Viewer APIs for Emap" document but didn’t see any relevant information.</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">The code I am using is something like the following: </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> var selectionSet = emapViewer.SelectionSet;</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial"> for(selEnumerator = new Enumerator(selectionSet); !selEnumerator.atEnd(); selEnumerator.moveNext())</FONT>
<BR><FONT SIZE=2 FACE="Arial"> {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> var feature = selEnumerator.item();</FONT>
<BR><FONT SIZE=2 FACE="Arial"> var id = feature.id;</FONT>
<BR><FONT SIZE=2 FACE="Arial"> var layerId = feature.LayerObjectId;</FONT>
<BR><FONT SIZE=2 FACE="Arial"> // what is feature? </FONT>
<BR><FONT SIZE=2 FACE="Arial"> // what are its properties and methods? </FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Specifcally, I want programmatic access to the object properties that are shown in the properties pane. Anybody know how to do this?</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">--Joel</FONT>
</P>
<BR>
</BODY>
</HTML>