WMSCapabilities.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.WMSCapabilities
  10. * Read WMS Capabilities.
  11. *
  12. * Inherits from:
  13. * - <OpenLayers.Format.XML.VersionedOGC>
  14. */
  15. OpenLayers.Format.WMSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {
  16. /**
  17. * APIProperty: defaultVersion
  18. * {String} Version number to assume if none found. Default is "1.1.1".
  19. */
  20. defaultVersion: "1.1.1",
  21. /**
  22. * APIProperty: profile
  23. * {String} If provided, use a custom profile.
  24. *
  25. * Currently supported profiles:
  26. * - WMSC - parses vendor specific capabilities for WMS-C.
  27. */
  28. profile: null,
  29. /**
  30. * Constructor: OpenLayers.Format.WMSCapabilities
  31. * Create a new parser for WMS capabilities.
  32. *
  33. * Parameters:
  34. * options - {Object} An optional object whose properties will be set on
  35. * this instance.
  36. */
  37. /**
  38. * APIMethod: read
  39. * Read capabilities data from a string, and return a list of layers.
  40. *
  41. * Parameters:
  42. * data - {String} or {DOMElement} data to read/parse.
  43. *
  44. * Returns:
  45. * {Array} List of named layers.
  46. */
  47. CLASS_NAME: "OpenLayers.Format.WMSCapabilities"
  48. });