WFSCapabilities.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
  2. * full list of contributors). Published under the 2-clause BSD license.
  3. * See license.txt in the OpenLayers distribution or repository for the
  4. * full text of the license. */
  5. /**
  6. * @requires OpenLayers/Format/XML/VersionedOGC.js
  7. */
  8. /**
  9. * Class: OpenLayers.Format.WFSCapabilities
  10. * Read WFS Capabilities.
  11. *
  12. * Inherits from:
  13. * - <OpenLayers.Format.XML.VersionedOGC>
  14. */
  15. OpenLayers.Format.WFSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {
  16. /**
  17. * APIProperty: defaultVersion
  18. * {String} Version number to assume if none found. Default is "1.1.0".
  19. */
  20. defaultVersion: "1.1.0",
  21. /**
  22. * Constructor: OpenLayers.Format.WFSCapabilities
  23. * Create a new parser for WFS capabilities.
  24. *
  25. * Parameters:
  26. * options - {Object} An optional object whose properties will be set on
  27. * this instance.
  28. */
  29. /**
  30. * APIMethod: read
  31. * Read capabilities data from a string, and return a list of layers.
  32. *
  33. * Parameters:
  34. * data - {String} or {DOMElement} data to read/parse.
  35. *
  36. * Returns:
  37. * {Array} List of named layers.
  38. */
  39. CLASS_NAME: "OpenLayers.Format.WFSCapabilities"
  40. });