<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm working on a searchtool that, among other 
things,&nbsp;goes through the attributes, and zooms to the selected object using 
javascript. To do this, I iterate through all the objects, up to the object 
count.</FONT></DIV>
<DIV><FONT face=Arial size=2>I got the whole thing pretty much working, except 
that currently I find the number of objects in a layer by creating a 
shapefileObj object, and getting the "numshapes" variable. I guess this is not 
too clean, because there could be other types of layers. What is the most ideal 
way to iterate through all objects in a layer? Is it possible to find the total 
number of objects from a layer object, without having to create a shapefile 
object?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION 
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street<BR>Leederville WA 
6007<BR>PO Box 81<BR>Leederville WA 6902<BR>Western Australia<BR>ABN 20 093 846 
925</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Tel &nbsp;&nbsp;&nbsp;&nbsp;+ 61 8 9281 
6185<BR>Fax&nbsp;&nbsp;&nbsp; + 61 8 9281 6297<BR><A 
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV></BODY></HTML>