/**
   * Appends WMS tiled image layer configuration elements to the superclass configuration document.
   *
   * @param params configuration parameters describing this WMS tiled image layer.
   * @return a WMS tiled image layer configuration document.
   */
  protected Document createConfigurationDocument(AVList params) {

    Document doc = super.createConfigurationDocument(params);
    if (doc == null || doc.getDocumentElement() == null) return doc;

    LayerConfiguration.createWMSTiledImageLayerElements(params, doc.getDocumentElement());

    return doc;
  }
  /**
   * Creates a configuration document for the basic elevation model described by the specified
   * params. This document's root element may be passed to a ElevationModelConfiguration
   * constructor, and it may be passed to the constructor of a {@link
   * gov.nasa.worldwind.terrain.BasicElevationModel}.
   *
   * @param params parameters describing the basic elevation model.
   * @return a configuration document for the basic elevation model.
   */
  public static Document createBasicElevationModelDocument(AVList params) {
    Document doc = WWXML.createDocumentBuilder(true).newDocument();

    Element root = doc.createElement("ElevationModel");
    root.setAttribute("version", Integer.toString(1));
    // No type attribute denotes the default elevation model, which currently is
    // BasicElevationModel.
    doc.appendChild(root);

    createElevationModelElements(params, root);
    createBasicElevationModelElements(params, root);

    return doc;
  }
 public WMSTiledImageLayer(Document dom, AVList params) {
   this(dom.getDocumentElement(), params);
 }