[OpenLayers-Users] how to know if there is some feature inside a OpenLayers.Layer.GML

lortiz at compegps.com lortiz at compegps.com
Fri Jun 5 10:55:25 EDT 2009



I get errors when in call to my server for features for some box where has
no items to show. link =
"getmap.php?Id=196439&bbox=1.120605,60.489704,17.95166,64.158531"
gml_new = new OpenLayers.Layer.GML("ZONE", link, {format:
OpenLayers.Format.GeoJSON, projection: map.displayProjection, styleMap :
aStyleMap }); Is there any way to know if var = gml_new loaded or not
something? For example something like gml_new.features.count() if result =
0 do nothing Thank you





More information about the Users mailing list