Source: globe/Globe2D.js

  1. /*
  2. * Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the
  3. * National Aeronautics and Space Administration. All rights reserved.
  4. *
  5. * The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /**
  18. * @exports Globe2D
  19. */
  20. define(['../globe/ElevationModel',
  21. '../globe/Globe',
  22. '../projections/ProjectionEquirectangular'
  23. ],
  24. function (ElevationModel,
  25. Globe,
  26. ProjectionEquirectangular) {
  27. "use strict";
  28. /**
  29. * Constructs a 2D globe with a default {@link ElevationModel} and
  30. * [equirectangular projection]{@link ProjectionEquirectangular}.
  31. * @alias Globe2D
  32. * @constructor
  33. * @augments Globe
  34. * @classdesc Represents a 2D flat globe with a configurable projection.
  35. * The default rectangular projection scrolls longitudinally.
  36. */
  37. var Globe2D = function () {
  38. Globe.call(this, new ElevationModel(), new ProjectionEquirectangular());
  39. };
  40. Globe2D.prototype = Object.create(Globe.prototype);
  41. return Globe2D;
  42. });