_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
52
373k
language
stringclasses
1 value
meta_information
dict
q25500
train
function (xmlDom) { // Create a WmtsCapabilities object from the XML DOM var wmtsCapabilities = new WorldWind.WmtsCapabilities(xmlDom); // Retrieve a WmtsLayerCapabilities object by the desired layer name var wmtsLayerCapabilities = wmtsCapabilities.getLayer(layerIdentifi...
javascript
{ "resource": "" }
q25501
train
function (layerElement, capabilities) { if (!layerElement) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "WmtsLayerCapabilities", "constructor", "missingDomElement")); } OwsDescription.call(this, layerElement); /**...
javascript
{ "resource": "" }
q25502
train
function (value, minimum, maximum) { return value < minimum ? minimum : value > maximum ? maximum : value; }
javascript
{ "resource": "" }
q25503
train
function (line, equatorialRadius, polarRadius, result) { if (!line) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "computeEllipsoidalGlobeIntersection", "missingLine")); } if (!result) { ...
javascript
{ "resource": "" }
q25504
train
function (origin, globe, xAxisResult, yAxisResult, zAxisResult) { if (!origin) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "localCoordinateAxesAtPoint", "missingVector")); } if (!globe) { ...
javascript
{ "resource": "" }
q25505
train
function (radius, altitude) { if (radius < 0) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "horizontalDistanceForGlobeRadius", "The specified globe radius is negative.")); } return (radius > 0 && a...
javascript
{ "resource": "" }
q25506
train
function (farDistance, farResolution, depthBits) { if (farDistance < 0) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "perspectiveNearDistanceForFarDistance", "The specified distance is negative.")); } ...
javascript
{ "resource": "" }
q25507
train
function (viewportWidth, viewportHeight, distance) { if (viewportWidth <= 0) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "perspectiveFrustumRectangle", "invalidWidth")); } if (viewportHeight <= 0)...
javascript
{ "resource": "" }
q25508
train
function (transformMatrix) { if (!transformMatrix) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "boundingRectForUnitQuad", "missingMatrix")); } var m = transformMatrix, // transform...
javascript
{ "resource": "" }
q25509
train
function (latitude) { return Math.log(Math.tan(Math.PI / 4 + (latitude * Angle.DEGREES_TO_RADIANS) / 2)) / Math.PI; }
javascript
{ "resource": "" }
q25510
train
function (value) { var power = Math.floor(Math.log(value) / Math.log(2)); return Math.pow(2, power); }
javascript
{ "resource": "" }
q25511
train
function (worldWindow) { if (!worldWindow) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "FrameStatisticsLayer", "constructor", "missingWorldWindow")); } Layer.call(this, "Frame Statistics"); // No picking of this ...
javascript
{ "resource": "" }
q25512
train
function (screenOffset, imagePath) { var sOffset = screenOffset ? screenOffset : new Offset(WorldWind.OFFSET_FRACTION, 1, WorldWind.OFFSET_FRACTION, 1), // upper-right placement iPath = imagePath ? imagePath : WorldWind.configuration.baseUrl + "images/notched-compass.png"; ...
javascript
{ "resource": "" }
q25513
train
function (displayName, measuredLocations, numLevels) { this.tileWidth = 256; this.tileHeight = 256; TiledImageLayer.call(this, new Sector(-90, 90, -180, 180), new Location(45, 45), numLevels || 18, 'image/png', 'HeatMap' + WWUtil.guid(), this.tileWidth, this.tileHeight); this.displayNa...
javascript
{ "resource": "" }
q25514
train
function (target, callback) { GestureRecognizer.call(this, target, callback); /** * * @type {Number} */ this.minNumberOfTouches = 1; /** * * @type {Number} */ this.maxNumberOfTouch...
javascript
{ "resource": "" }
q25515
train
function () { var pathAttributes = new WorldWind.ShapeAttributes(null); pathAttributes.interiorColor = WorldWind.Color.CYAN; pathAttributes.outlineColor= WorldWind.Color.BLUE; var pathPositions = [ new WorldWind.Position(40, -100, 1e4), new WorldWind.Position(45,...
javascript
{ "resource": "" }
q25516
train
function (o) { // The input argument is either an Event or a TapRecognizer. Both have the same properties for determining // the mouse or tap location. var x = o.clientX, y = o.clientY; // Perform the pick. Must first convert from window coordinates to ca...
javascript
{ "resource": "" }
q25517
train
function (position, sceneData) { if (!position) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "ColladaScene", "constructor", "missingPosition")); } Renderable.call(this); // Documented in defineProperties below. ...
javascript
{ "resource": "" }
q25518
train
function (serverAddress, pathToData, displayName) { var cachePath = WWUtil.urlPath(serverAddress + "/" + pathToData); TiledImageLayer.call(this, Sector.FULL_SPHERE, new Location(36, 36), 10, "image/png", cachePath, 512, 512); this.displayName = displayName; this.pickEna...
javascript
{ "resource": "" }
q25519
train
function (globe, tessellator, terrainTiles, verticalExaggeration) { /** * The globe associated with this terrain. * @type {Globe} */ this.globe = globe; /** * The vertical exaggeration of this terrain. * @type {Number...
javascript
{ "resource": "" }
q25520
train
function (nightImageSource) { Layer.call(this, "Atmosphere"); // The atmosphere layer is not pickable. this.pickEnabled = false; //Documented in defineProperties below. this._nightImageSource = nightImageSource || WorldWind.configuration.base...
javascript
{ "resource": "" }
q25521
train
function (target, callback) { if (!target) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "GestureRecognizer", "constructor", "missingTarget")); } /** * Indicates the document element this ge...
javascript
{ "resource": "" }
q25522
train
function (minLatitude, maxLatitude, minLongitude, maxLongitude) { /** * This sector's minimum latitude in degrees. * @type {Number} */ this.minLatitude = minLatitude; /** * This sector's maximum latitude in degrees. * @...
javascript
{ "resource": "" }
q25523
train
function(data, options) { HeatMapTile.call(this, data, options); this._extendedWidth = options.extendedWidth; this._extendedHeight = options.extendedHeight; this._gradient = this.gradient(options.intensityGradient); }
javascript
{ "resource": "" }
q25524
train
function (sector, imageSource) { if (!sector) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "SurfaceImage", "constructor", "missingSector")); } if (!imageSource) { throw new ArgumentError(Logger.logMessage(Logger...
javascript
{ "resource": "" }
q25525
train
function () { // Documented in defineProperties below. this._ncols = null; // Documented in defineProperties below. this._nrows = null; // Documented in defineProperties below. this._xllcorner = null; // Documented in definePropertie...
javascript
{ "resource": "" }
q25526
train
function () { /** * The width in pixels of framebuffers associated with this controller's tiles. * @type {Number} * @readonly */ this.tileWidth = 256; /** * The height in pixels of framebuffers associated with this co...
javascript
{ "resource": "" }
q25527
getTextOfNode
train
function getTextOfNode(node) { var result; if (node != null && node.childNodes[0]) { result = node.childNodes[0].nodeValue; } else if (node != null) { result = ""; } return result; }
javascript
{ "resource": "" }
q25528
train
function (target, callback) { GestureRecognizer.call(this, target, callback); /** * * @type {Number} */ this.numberOfClicks = 1; /** * * @type {Number} */ this.button = 0; ...
javascript
{ "resource": "" }
q25529
train
function (sequenceString) { if (!sequenceString) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "PeriodicTimeSequence", "constructor", "missingString")); } var intervalParts = sequenceString.split("/"); if (intervalP...
javascript
{ "resource": "" }
q25530
train
function (xUnits, x, yUnits, y) { /** * The offset in the X dimension, interpreted according to this instance's xUnits argument. * @type {Number} */ this.x = x; /** * The offset in the Y dimension, interpreted according to this in...
javascript
{ "resource": "" }
q25531
train
function (xmlNode) { if (!xmlNode) { return null; } var text = xmlNode.textContent; text = text.replace(/\n/gi, " "); text = text.replace(/\s+/gi, " "); text = text.trim(); if (text.length === 0) { retu...
javascript
{ "resource": "" }
q25532
train
function (xmlNode) { var rawValues = this.getRawValues(xmlNode); if (!rawValues) { return null; } var len = rawValues.length; var bufferData = new Float32Array(len); for (var i = 0; i < len; i++) { bufferData[i] =...
javascript
{ "resource": "" }
q25533
train
function (xmlNode) { var rawValues = this.getRawValues(xmlNode); if (!rawValues) { return null; } var len = rawValues.length; var bufferData = new Uint32Array(len); for (var i = 0; i < len; i++) { bufferData[i] = ...
javascript
{ "resource": "" }
q25534
train
function (xmlNode, nodeName) { var childs = xmlNode.childNodes; for (var i = 0; i < childs.length; ++i) { var item = childs.item(i); if (item.nodeType !== 1) { continue; } if ((item.nodeName && !nodeName) ||...
javascript
{ "resource": "" }
q25535
train
function (filePath) { var pos = filePath.lastIndexOf("\\"); if (pos !== -1) { filePath = filePath.substr(pos + 1); } pos = filePath.lastIndexOf("/"); if (pos !== -1) { filePath = filePath.substr(pos + 1); } ...
javascript
{ "resource": "" }
q25536
train
function (nodes, id) { for (var i = 0; i < nodes.length; i++) { var attrId = nodes.item(i).getAttribute("id"); if (!attrId) { continue; } if (attrId.toString() === id) { return nodes.item(i); ...
javascript
{ "resource": "" }
q25537
train
function (uvs) { var clamp = true; for (var i = 0, len = uvs.length; i < len; i++) { if (uvs[i] < 0 || uvs[i] > 1) { clamp = false; break; } } return clamp; }
javascript
{ "resource": "" }
q25538
train
function (url, cb) { var request = new XMLHttpRequest(); request.onload = function () { if (this.status >= 200 && this.status < 400) { cb(this.response); } else { Logger.log(Logger.LEVEL_SEVERE, "sever erro...
javascript
{ "resource": "" }
q25539
train
function () { RenderableLayer.call(this, "Blue Marble Image"); var surfaceImage = new SurfaceImage(Sector.FULL_SPHERE, WorldWind.configuration.baseUrl + "images/BMNG_world.topo.bathy.200405.3.2048x1024.jpg"); this.addRenderable(surfaceImage); this.pickE...
javascript
{ "resource": "" }
q25540
train
function (attributes, record) { var configuration = {}; configuration.name = attributes.values.name || attributes.values.Name || attributes.values.NAME; if (record.isPointType()) { // Configure point-based features (cities, in this example) configuration.name = attri...
javascript
{ "resource": "" }
q25541
train
function (capacity, lowWater) { if (!capacity || capacity < 1) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "GpuResourceCache", "constructor", "Specified cache capacity is undefined, 0 or negative.")); } ...
javascript
{ "resource": "" }
q25542
train
function () { /** * This ordered renderable's display name. * @type {String} * @default Renderable */ this.displayName = "Renderable"; /** * Indicates whether this ordered renderable is enabled. * @type {...
javascript
{ "resource": "" }
q25543
train
function (size, style, variant, weight, family, horizontalAlignment) { /* * All properties of Font are intended to be private and must be accessed via public getters and setters. */ if (!size) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEV...
javascript
{ "resource": "" }
q25544
train
function (sector, imageWidth, imageHeight) { if (!sector) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "ElevationImage", "constructor", "missingSector")); } /** * The sector spanned by this elevation image. ...
javascript
{ "resource": "" }
q25545
getLetter100kID
train
function getLetter100kID(column, row, parm) { // colOrigin and rowOrigin are the letters at the origin of the set var index = parm - 1; var colOrigin = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(index); var rowOrigin = SET_ORIGIN_ROW_LETTERS.charCodeAt(index); // colInt and rowInt are...
javascript
{ "resource": "" }
q25546
decode
train
function decode(mgrsString) { if (mgrsString && mgrsString.length === 0) { throw ("MGRSPoint coverting from nothing"); } var length = mgrsString.length; var hunK = null; var sb = ""; var testChar; var i = 0; // get Zone number while...
javascript
{ "resource": "" }
q25547
getEastingFromChar
train
function getEastingFromChar(e, set) { // colOrigin is the letter at the origin of the set for the // column var curCol = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(set - 1); var eastingValue = 100000.0; var rewindMarker = false; while (curCol !== e.charCodeAt(0)) { ...
javascript
{ "resource": "" }
q25548
train
function (imagerySet, bingMapsKey) { var wwBingMapsKey = "AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH"; // Use key specified for this layer this.bingMapsKey = bingMapsKey; // If none, fallback to key specified globally if (!this.bingMaps...
javascript
{ "resource": "" }
q25549
train
function () { this.id = ""; this.name = ""; this.sid = ""; this.children = []; this.materials = []; this.mesh = ""; this.localMatrix = Matrix.fromIdentity(); this.worldMatrix = Matrix.fromIdentity(); }
javascript
{ "resource": "" }
q25550
train
function (worldWindow) { if (!worldWindow) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "WorldWindowController", "constructor", "missingWorldWindow")); } /** * The WorldWindow associated with this controller. ...
javascript
{ "resource": "" }
q25551
train
function (origin, direction) { if (!origin) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor", "Origin is null or undefined.")); } if (!direction) { throw new ArgumentError(Logger.logMessage(Log...
javascript
{ "resource": "" }
q25552
train
function (image) { if (!image) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "ImageSource", "constructor", "missingImage")); } /** * This image source's image * @type {Image} * @readonly ...
javascript
{ "resource": "" }
q25553
train
function (config) { if (!config) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "WmsTimeDimensionedLayer", "constructor", "No configuration specified.")); } Layer.call(this, "WMS Time Dimensioned Layer");...
javascript
{ "resource": "" }
q25554
train
function (degrees) { var sign, temp, d, m, s; sign = degrees < 0 ? -1 : 1; temp = sign * degrees; d = Math.floor(temp); temp = (temp - d) * 60; m = Math.floor(temp); temp ...
javascript
{ "resource": "" }
q25555
train
function (element) { if (!element) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "OwsOperationsMetadata", "constructor", "missingDomElement")); } var children = element.children || element.childNodes; for (var c = 0...
javascript
{ "resource": "" }
q25556
train
function () { Layer.call(this, "ScreenCreditController"); /** * An {@link Offset} indicating where to place the attributions on the screen. * @type {Offset} * @default The lower left corner of the window with an 11px left margin and a 2px bottom margin. ...
javascript
{ "resource": "" }
q25557
train
function () { var protocol = window.location.protocol, host = window.location.host, path = window.location.pathname, pathParts = path.split("/"), newPath = ""; for (var i = 0, len = pathParts.length; i < len...
javascript
{ "resource": "" }
q25558
train
function () { var scripts = document.getElementsByTagName("script"), libraryName = "/worldwind."; for (var i = 0; i < scripts.length; i++) { var index = scripts[i].src.indexOf(libraryName); if (index >= 0) { ...
javascript
{ "resource": "" }
q25559
train
function (url) { if (!url) return ""; var urlParts = url.split("/"), newPath = ""; for (var i = 0, len = urlParts.length; i < len; i++) { var part = urlParts[i]; if (!part || part.length ==...
javascript
{ "resource": "" }
q25560
train
function (url, parameterName, callback) { // Generate a unique function name for the JSONP callback. var functionName = "gov_nasa_worldwind_jsonp_" + WWUtil.jsonpCounter++; // Define a JSONP callback function. Assign it to global scope the browser can find it. ...
javascript
{ "resource": "" }
q25561
train
function (original) { var clone = {}; var i, keys = Object.keys(original); for (i = 0; i < keys.length; i++) { // copy each property into the clone clone[keys[i]] = original[keys[i]]; } return clone...
javascript
{ "resource": "" }
q25562
train
function(subjectString, searchString, position) { position = position || 0; return subjectString.substr(position, searchString.length) === searchString; }
javascript
{ "resource": "" }
q25563
train
function(subjectString, searchString, length) { if (typeof length !== 'number' || !isFinite(length) || Math.floor(length) !== length || length > subjectString.length) { length = subjectString.length; } length -= searchString.length; var...
javascript
{ "resource": "" }
q25564
train
function () { TiledElevationCoverage.call(this, { coverageSector: Sector.FULL_SPHERE, resolution: 0.008333333333333, retrievalImageFormat: "image/tiff", minElevation: -11000, maxElevation: 8850, urlBuilder: new W...
javascript
{ "resource": "" }
q25565
train
function (contours, resultContours) { var doesCross = false; for (var i = 0, len = contours.length; i < len; i++) { var contourInfo = this.splitContour(contours[i]); if (contourInfo.polygons.length > 1) { doesCross = true; ...
javascript
{ "resource": "" }
q25566
train
function (points) { var iMap = new HashMap(); var newPoints = []; var intersections = []; var polygons = []; var iMaps = []; var poleIndex = -1; var pole = this.findIntersectionAndPole(points, newPoints, int...
javascript
{ "resource": "" }
q25567
train
function (points, newPoints, intersections, iMap) { var containsPole = false; var minLatitude = 90.0; var maxLatitude = -90.0; this.addedIndex = -1; for (var i = 0, lenC = points.length; i < lenC; i++) { var pt1 = point...
javascript
{ "resource": "" }
q25568
train
function (minLatitude, maxLatitude) { var pole; if (minLatitude > 0) { pole = Location.poles.NORTH; // Entirely in Northern Hemisphere. } else if (maxLatitude < 0) { pole = Location.poles.SOUTH; // Entirely in Southe...
javascript
{ "resource": "" }
q25569
train
function (points, intersections, iMap, pole) { var pointsClone; if (pole === Location.poles.NORTH) { var intersection = intersections.shift(); var poleLat = 90; } else if (pole === Location.poles.SOUTH) { ...
javascript
{ "resource": "" }
q25570
train
function (intersections, iMap) { for (var i = 0; i < intersections.length - 1; i += 2) { var i0 = intersections[i]; var i1 = intersections[i + 1]; var iEnd0 = iMap.get(i0.indexEnd); var iStart0 = iMap.get(i0.indexStart); ...
javascript
{ "resource": "" }
q25571
train
function (intersections, iMap, indexOffset) { iMap = HashMap.reIndex(iMap, indexOffset, 2); for (var i = 0, len = intersections.length; i < len; i++) { if (intersections[i].indexEnd >= indexOffset) { intersections[i].indexEnd += 2; ...
javascript
{ "resource": "" }
q25572
train
function (start, end, points, iMap, resultPolygon, polygonHashMap) { var pass = false; var len = points.length; var containsPole = false; if (end < start) { end += len; } for (var i = start; i <= end; i...
javascript
{ "resource": "" }
q25573
train
function (points, point, index, len) { if (this.addedIndex < index && this.addedIndex < len - 1) { points.push(point); this.addedIndex = index; } }
javascript
{ "resource": "" }
q25574
train
function (latitude, longitude, altitude) { if (altitude == null) { return new Location(latitude, longitude); } return new Position(latitude, longitude, altitude); }
javascript
{ "resource": "" }
q25575
train
function (type) { /** * Type of this object. * @type {WKTType} */ this.type = type; /** * It is possible for the WKT object to be displayed not in 2D but in 3D. * @type {Boolean} * @private */ this._is3d = false; /*...
javascript
{ "resource": "" }
q25576
train
function (recognizer) { // Obtain the event location. var x = recognizer.clientX, y = recognizer.clientY; // Perform the pick. Must first convert from window coordinates to canvas coordinates, which are // relative to the upper left corner of the canvas r...
javascript
{ "resource": "" }
q25577
train
function (displayName) { /** * This layer's display name. * @type {String} * @default "Layer" */ this.displayName = displayName ? displayName : "Layer"; /** * Indicates whether to display this layer. * @t...
javascript
{ "resource": "" }
q25578
train
function (worldWindow) { if (!worldWindow) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "GoToAnimator", "constructor", "missingWorldWindow")); } /** * The WorldWindow associated with this animator. * @...
javascript
{ "resource": "" }
q25579
train
function (displayName, continuous, projectionLimits) { /** * This projection's display name. * @type {string} */ this.displayName = displayName || "Geographic Projection"; /** * Indicates whether this projection should be treated ...
javascript
{ "resource": "" }
q25580
train
function (pole) { GeographicProjection.call(this, "Polar Equidistant", false, null); // Internal. Intentionally not documented. See "pole" property accessor below for public interface. this._pole = pole; // Internal. Intentionally not documented. this.north...
javascript
{ "resource": "" }
q25581
onExportWkt
train
function onExportWkt() { // This is the actual export action. var exportedWkt = WorldWind.WktExporter.exportRenderables(shapesLayer.renderables); document.getElementById("wktTxtArea").value = exportedWkt; }
javascript
{ "resource": "" }
q25582
train
function (sector, levelZeroDelta, numLevels, tileWidth, tileHeight) { if (!sector) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "LevelSet", "constructor", "missingSector")); } if (!levelZeroDelta) { throw new A...
javascript
{ "resource": "" }
q25583
train
function (level, message) { if (message && level > 0 && level <= loggingLevel) { if (level === Logger.LEVEL_SEVERE) { console.error(message); } else if (level === Logger.LEVEL_WARNING) { console.warn(message); } else if ...
javascript
{ "resource": "" }
q25584
train
function(array) { if (!array) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "ByteBuffer", "constructor", "missingArray")); } /** * The raw data of the array buffer. * @type {ArrayBuffer} *...
javascript
{ "resource": "" }
q25585
train
function(data, options) { this._data = data; this._sector = options.sector; this._canvas = this.createCanvas(options.width, options.height); this._width = options.width; this._height = options.height; this._intensityGradient = options.intensityGradient; this._...
javascript
{ "resource": "" }
q25586
train
function () { // Documented in defineProperties below. this._bitsPerSample = null; // Documented in defineProperties below. this._colorMap = null; // Documented in defineProperties below. this._compression = null; // Documented in d...
javascript
{ "resource": "" }
q25587
train
function (gl, image, wrapMode) { if (!gl) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Texture", "constructor", "missingGlContext")); } if (!image) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVE...
javascript
{ "resource": "" }
q25588
train
function (attributes) { // All these are documented with their property accessors below. this._drawInterior = attributes ? attributes._drawInterior : true; this._drawOutline = attributes ? attributes._drawOutline : true; this._enableLighting = attributes ? attributes._en...
javascript
{ "resource": "" }
q25589
train
function (locations, attributes) { if (!locations) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "SurfacePolyline", "constructor", "The specified locations array is null or undefined.")); } SurfaceShape....
javascript
{ "resource": "" }
q25590
train
function (dates) { if (!dates && dates.length < 2) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "BasicTimeSequence", "constructor", "missingDates")); } /** * This sequence's list of Dates. * @type {D...
javascript
{ "resource": "" }
q25591
train
function (gl, shaderType, shaderSource) { if (!(shaderType === gl.VERTEX_SHADER || shaderType === gl.FRAGMENT_SHADER)) { throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "GpuShader", "constructor", "The specified shader type is unrecognized."...
javascript
{ "resource": "" }
q25592
train
function (center, radius, attributes) { if (!center) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "SurfaceCircle", "constructor", "missingLocation")); } if (radius < 0) { throw new ArgumentError( ...
javascript
{ "resource": "" }
q25593
train
function (worldWindow, layersPanel, timeSeriesPlayer) { var thisServersPanel = this; this.wwd = worldWindow; this.layersPanel = layersPanel; this.timeSeriesPlayer = timeSeriesPlayer; this.idCounter = 1; this.legends = {}; $("#addServerBox").find("button").on("...
javascript
{ "resource": "" }
q25594
train
function (worldWindow) { if (!worldWindow) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "CoordinatesDisplayLayer", "constructor", "missingWorldWindow")); } Layer.call(this, "Coordinates"); /** * The W...
javascript
{ "resource": "" }
q25595
train
function (x, y, z, distance) { /** * The normal vector to the plane. * @type {Vec3} */ this.normal = new Vec3(x, y, z); /** * The plane's distance from the origin. * @type {Number} */ this.dist...
javascript
{ "resource": "" }
q25596
train
function () { ElevationModel.call(this); this.addCoverage(new GebcoElevationCoverage()); this.addCoverage(new AsterV2ElevationCoverage()); this.addCoverage(new UsgsNedElevationCoverage()); this.addCoverage(new UsgsNedHiElevationCoverage()); }
javascript
{ "resource": "" }
q25597
train
function (xmlDom) { if (!xmlDom) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "WcsCoverageDescriptions", "constructor", "missingDom")); } /** * The original unmodified XML document. Referenced for use in advanced ...
javascript
{ "resource": "" }
q25598
train
function (screenOffset, imageSource) { if (!screenOffset) { throw new ArgumentError( Logger.logMessage(Logger.LEVEL_SEVERE, "ScreenImage", "constructor", "missingOffset")); } if (!imageSource) { throw new ArgumentError( ...
javascript
{ "resource": "" }
q25599
train
function () { // If we don't have a state key for the shape attributes, consider this state key to be invalid. if (!this._attributesStateKey) { // Update the state key for the appropriate attributes for future if (this._highlighted)...
javascript
{ "resource": "" }