Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | 6x 6x 6x 6x 6x 6x 1x 6x 7x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import Logger from "../../../../Utils/LoggerByDefault"; import AltiRequest from "./AltiRequest"; /** * @classdesc * * Classe de gestion des param. des requêtes de type POINT du service altimetrique. * * @constructor * @alias Gp.Services.Alti.Request.AltiElevationRequest * @param {Object} options - options * @param {Boolean} options.zonly - false|true * * @private */ function AltiElevationRequest (options) { Iif (!(this instanceof AltiElevationRequest)) { throw new TypeError("AltiElevationRequest constructor cannot be called as a function."); } /** * Nom de la classe (heritage) */ this.CLASSNAME = "AltiElevationRequest"; // appel du constructeur par heritage AltiRequest.apply(this, arguments); this.logger = Logger.getLogger(); this.logger.trace("[Constructeur AltiElevationRequest ()]"); /** * Z uniquement. * true|false */ this.zonly = this.options.zonly || false; // test des options héritées ! } /** * @lends module:AltiElevationRequest# */ AltiElevationRequest.prototype = Object.create(AltiRequest.prototype, { /** * Setter/getter pour "zonly" */ zonly : { /** getter */ get : function () { return this._zonly; }, /** setter */ set : function (z) { this._zonly = z; } } }); /** * Constructeur (alias) */ AltiElevationRequest.prototype.constructor = AltiElevationRequest; /** * Tableau de clefs/valeurs pour param. * * @returns {Array} */ AltiElevationRequest.prototype.getData = function () { // par glop..., appel de AltiRequest::getData () ! var map = []; map.push({ k : "lon", v : this.getLon() }); map.push({ k : "lat", v : this.getLat() }); // map.push({k : "delimiter", v : this.delimiter}); // FIXME on retire le param "delimiter" map.push({ k : "indent", v : this.indent }); map.push({ k : "crs", v : this.crs }); map.push({ k : "zonly", v : this.zonly }); map.push({ k : "format", v : this.format }); map.push({ k : "resource", v : this.resource }); return map; }; export default AltiElevationRequest; |