( Map, ArcGISTiledMapServiceLayer, domUtils, esriRequest, parser, number, JSON, dom, registry, RasterLayer, WebTiledLayer, esriConfig ) 'This browser doesn't support canvas. Visit <,a target='_blank' href='http://www.caniuse.com/#search=canvas'>,caniuse.com<,/a>, for supported browsers' /********************** * Internal Properties * * _map * _element * _context * _mapWidth * _mapHeight * _connects * **********************/ /* Global class for simulating the movement of particle through a 1km wind grid credit: All the credit for this work goes to: https://github.com/cambecc for creating the repo: https://github.com/cambecc/earth. The majority of this code is directly take nfrom there, since its awesome. This class takes a canvas element and an array of data (1km GFS from http://www.emc.ncep.noaa.gov/index.php?branch=GFS) and then uses a mercator (forward/reverse) projection to correctly map wind vectors in 'map space'. The 'start' method takes the bounds of the map at its current extent and starts the whole gridding, interpolation and animation process. */ /** * @returns {Number} returns remainder of floored division, i.e., floor(a / n). Useful for consistent modulo * of negative numbers. See http://en.wikipedia.org/wiki/Modulo_operation. */ /** * Calculate distortion of the wind vector caused by the shape of the projection at point (x, y). The wind * vector is modified in place and returned by this function. */ /** * @returns {Array} wind vector [u, v, magnitude] at the point (x, y), or [NaN, NaN, null] if wind * is undefined at that point. */ { x = Math.round(Math.floor(Math.random() * bounds.width) + bounds.x), y = Math.round(Math.floor(Math.random() * bounds.height) + bounds.y) } g.moveTo(particle.x, particle.y), g.lineTo(particle.xt, particle.yt), particle.x = particle.xt, particle.y = particle.yt, }), g.stroke(), } }), } ( window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || Source.

Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified:
Fatal error: Call to undefined function mdv_last_modified() in /home1/wacedu0abjm6/public_html/wp-content/themes/CherryFramework/footer.php on line 121