text: /* 
   * Copyright (c) 2015, Bruce Schubert <bruce@emxsys.com>
   * All rights reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions are met:
   *
   *     - Redistributions of source code must retain the above copyright
   *       notice, this list of conditions and the following disclaimer.
   *
   *     - Redistributions in binary form must reproduce the above copyright
   *       notice, this list of conditions and the following disclaimer in the
   *       documentation and/or other materials provided with the distribution.
   *
   *     - Neither the name of Bruce Schubert, Emxsys nor the names of its 
   *       contributors may be used to endorse or promote products derived
   *       from this software without specific prior written permission.
   *
   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
   * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
   * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
  
  /*global define, WorldWind*/
  
  define([
      'wmt/Wmt',
      'worldwind'],
      function (
          wmt,
          ww) {
          "use strict";
  
          /**
           * Creates a GeographicText component used to display the air temperature in a Weather Map Symbol.
           * @param {Number} latitude
           * @param {Number} longitude
           * @param {String} flameLen
           * @returns {FlameLengthHead}
           */
          var FlameLengthHead = function (latitude, longitude, flameLen) {
              WorldWind.GeographicText.call(this, new WorldWind.Position(latitude, longitude, wmt.MAP_SYMBOL_ALTITUDE_WILDFIRE), flameLen);
  
              this.altitudeMode = WorldWind.RELATIVE_TO_GROUND;
              this.alwaysOnTop = true;
              this.attributes = new WorldWind.TextAttributes(null);
              this.attributes.scale = 1.0;
              this.attributes.offset = new WorldWind.Offset(
                  WorldWind.OFFSET_FRACTION, 0.5, // Center
                  WorldWind.OFFSET_FRACTION, -0.9);   // Upper
              this.attributes.color = WorldWind.Color.YELLOW;
              this.attributes.depthTest = false;
          };
          // Inherit Placemark parent methods
          FlameLengthHead.prototype = Object.create(WorldWind.GeographicText.prototype);
  
          /**
           * Creates a clone of this object.
           * @returns {FlameLengthHead}
           */
          FlameLengthHead.prototype.clone = function () {
              var clone = new FlameLengthHead(this.position.latitude, this.position.longitude, this.text);
              clone.copy(this);
              clone.pickDelegate = this.pickDelegate ? this.pickDelegate : this;
              clone.attributes = new WorldWind.TextAttributes(this.attributes);
              return clone;
          };
  
  
          return FlameLengthHead;
      }
  );
  
  