1 /* Copyright (c) 2009 MetaCarta, Inc., published under the Clear BSD
2 * license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
3 * full text of the license. */
6 * @requires OpenLayers/Format/ArcXML.js
10 * Class: OpenLayers.Format.ArcXML.Features
11 * Read/Wite ArcXML features. Create a new instance with the
12 * <OpenLayers.Format.ArcXML.Features> constructor.
15 * - <OpenLayers.Format.XML>
17 OpenLayers.Format.ArcXML.Features = OpenLayers.Class(OpenLayers.Format.XML, {
20 * Constructor: OpenLayers.Format.ArcXML.Features
21 * Create a new parser/writer for ArcXML Features. Create an instance of this class
22 * to get a set of features from an ArcXML response.
25 * options - {Object} An optional object whose properties will be set on
28 initialize: function(options) {
29 OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
34 * Read data from a string of ArcXML, and return a set of OpenLayers features.
37 * data - {String} or {DOMElement} data to read/parse.
40 * {Array(<OpenLayers.Feature.Vector>)} A collection of features.
42 read: function(data) {
43 var axl = new OpenLayers.Format.ArcXML();
44 var parsed = axl.read(data);
46 return parsed.features.feature;