<span style="font-size:12.0pt;font-family:"Times New Roman","serif"">I'm getting "undefined"
when I try to call kmllayer.features using the script provided in the last post.
<span> </span>I am able to view the 'feature.geometry'
when the feature is coming from a click event, I just have not figured out how
to get all features available from the kml layer (keeps coming up undefined no
matter what I try).<span>  </span>Any more examples would
be greatly appreciated (working links to complete examples would be awesome</span><span style="font-size:12.0pt;font-family:Wingdings"><span><img goomoji="gtalk.330" style="margin:0px 0.2ex;vertical-align:middle" src="http://osgeo-org.1560.n6.nabble.com/attachment/4986986/0/330.png"></span></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">), thanks for what I
have gotten so far.<br><br clear="all"></span><span style="font-family:georgia,serif">Aaron E-J</span><br style="font-family:georgia,serif"><span style="font-family:georgia,serif"><a href="http://otherrealm.org" target="_blank" rel="nofollow" link="external">http://otherrealm.org</a></span><br style="font-family:georgia,serif">


<span style="font-family:georgia,serif"><a href="http://aaronej.blogspot.com" target="_blank" rel="nofollow" link="external">http://aaronej.blogspot.com</a></span><br style="font-family:georgia,serif"><span style="font-family:georgia,serif">Vision without action is a daydream,</span><br style="font-family:georgia,serif">


<span style="font-family:georgia,serif">Action without vision is a nightmare,</span><br style="font-family:georgia,serif"><span style="font-family:georgia,serif">One needs both to succeed.</span><br><br><br><br>
<br><br><div class="gmail_quote">On Sun, Jul 8, 2012 at 5:05 PM, Phil Scadden [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4986986&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>


<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        Something like this?  (okay, I do this on a WFS request, rather than a 
<br>layer but principle should apply.
<br><br>           var fts = layer.features;
<br>           if (fts.length>0 && fts[0].geometry) {
<br>               sExt = fts[0].geometry.getBounds().clone();
<br>               for(var i=1;i<fts.length;i++) {
<br>                  sExt.extend(fts[i].geometry.getBounds());
<br>               }
<br>           }
<br><br><br>Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
<br><div><br>_______________________________________________
<br>Users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4986795&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://osgeo-org.1560.n6.nabble.com/Is-there-an-easy-way-to-center-and-zoom-the-map-automatically-based-on-the-placemarks-that-are-on-it-tp4985789p4986795.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/Is-there-an-easy-way-to-center-and-zoom-the-map-automatically-based-on-the-placemarks-that-are-on-it-tp4985789p4986795.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Is there an easy way to center and zoom the map automatically based on the placemarks that are on it?, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>



                <a href="http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br>

        <div class="signature weak-color">Vision without action is a daydream,
<br/>Action without vision is a nightmare,
<br/>One needs both to succeed.</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Is-there-an-easy-way-to-center-and-zoom-the-map-automatically-based-on-the-placemarks-that-are-on-it-tp4985789p4986986.html">Re: Is there an easy way to center and zoom the map automatically based on the placemarks that are on it?</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>