Create a vector layer by parsing a GML file. The GML file is passed in as a parameter. Deprecated. To be removed in 3.0. Instead use OpenLayers.Layer.Vector with Protocol.HTTP and Strategy.Fixed. Provide the protocol with a format parameter to get the parser you want for your data.
| OpenLayers. | Create a vector layer by parsing a GML file. | 
| Properties | |
| loaded | {Boolean} Flag for whether the GML data has been loaded yet. | 
| format | {OpenLayers.Format} The format you want the data to be parsed with. | 
| formatOptions | {Object} Hash of options which should be passed to the format when it is created. | 
| Constructor | |
| OpenLayers. | Load and parse a single file on the web, according to the format provided via the ‘format’ option, defaulting to GML. | 
| Functions | |
| setVisibility | Set the visibility flag for the layer and hide/show&redraw accordingly. | 
| moveTo | If layer is visible and GML has not been loaded, load GML, then load GML and call OpenLayers.Layer.Vector.moveTo() to redraw at the new location. | 
| loadGML | |
| setUrl | Change the URL and reload the GML | 
| requestSuccess | Process GML after it has been loaded. | 
| requestFailure | Process a failed loading of GML. | 
{OpenLayers.Format} The format you want the data to be parsed with.
setVisibility: function( visibility, noEvent ) 
Set the visibility flag for the layer and hide/show&redraw accordingly. Fire event unless otherwise specified GML will be loaded if the layer is being made visible for the first time.
| visible | {Boolean} Whether or not to display the layer (if in range) | 
| noEvent | {Boolean} | 
Set the visibility flag for the layer and hide/show&redraw accordingly.
setVisibility: function( visibility, noEvent ) 
If layer is visible and GML has not been loaded, load GML, then load GML and call OpenLayers.Layer.Vector.moveTo() to redraw at the new location.
moveTo:function( bounds, zoomChanged, minor ) 
loadGML: function() 
Change the URL and reload the GML
setUrl:function( url ) 
Process GML after it has been loaded.
requestSuccess:function( request ) 
Process a failed loading of GML.
requestFailure: function( request )