On 10/25/2011 2:47 PM, Greg Allensworth wrote:
if (layer.features.length > 0) {

Sorry, typo there.
It could read like either of these:

// get the layer from the feature
if (feature.layer.features.length > 0) {

// get the feature count from the layer, which is the callback's context
if (this.features.length > 0) {


--
Greg Allensworth, Web GIS Developer
BS  A+  Network+  Security+  Linux+  Server+
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510  San Francisco CA 94104
PH: 415-979-0343 x302  FX: 415-979-0371    email: [email protected]
Web: www.GreenInfo.org     www.MapsPortal.org

Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to