Commit Graph

24 Commits

Author SHA1 Message Date
Frederic Junod a4504b0e00 Remove unused ol.TileRange.boundingTileRange function 2016-09-15 10:21:50 +02:00
Tim Schaub 274b7285f3 Assorted missing requires 2016-08-12 10:53:48 -06:00
Tim Schaub d02cf1e7a9 Shuffle assertions 2016-08-12 10:53:47 -06:00
Andreas Hocevar 6f5ed17fc5 Remove goog.asserts.*
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Peter Robins f57065c412 Remove unneeded goog.provides/requires for typedefs
In general, typedefs do not need and should not have goog.require/provide
2016-05-09 13:21:25 +00:00
Tim Schaub 13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub 7659e47e07 Inline simple goog.isDef() checks 2015-09-27 10:18:44 -06:00
Marc Jansen fb9ba22c30 Add message to assertions. 2015-03-30 22:53:03 +02:00
Éric Lemoine ba035abb1f Change ol.TileCoord to an Array 2014-08-18 09:33:24 +02:00
Frederic Junod 14fc16b91d Add ol.TileRange#containsXY function 2014-08-14 10:50:19 +02:00
Tom Payne 600cb3a0ff Add @struct annotation where possible 2013-12-04 16:07:39 +01:00
Tom Payne d358e80937 Improve type checking in ol.TileRange 2013-11-24 14:33:58 +01:00
Frederic Junod a1a7e21f92 Redefine ol.Size to be Array.<number> 2013-06-01 10:22:06 +02:00
Tom Payne c48b9c5118 Cache array length in ol.TileRange 2013-04-20 11:34:48 +02:00
Tom Payne 1ad7765f2f Don't derive ol.TileRange from ol.Rectangle 2013-04-19 09:32:11 +02:00
Tom Payne 7a4672d429 Add ol.TileRange.createOrUpdate 2013-04-09 19:19:19 +02:00
Tom Payne b396673932 Fix typo in ol.TileRange.containsTileRange 2013-03-25 11:54:50 +01:00
Tim Schaub 5148ad038c Sharing code with rectangle
We cannot use the rectangle constructor here because a rectangle makes an assertion about min being less than max and a range may have equal min/max.
2013-02-19 07:30:54 -07:00
Tim Schaub 8b19751264 Making it explicit that this is a range of tiles
With tile range extending rectangle, a tile range that represented a single tile was not allowed.
2013-02-18 17:07:31 -07:00
Éric Lemoine 8b83345bd2 Add equals to Rectangle 2013-02-14 23:36:35 +01:00
Tom Payne 859af576d5 Move var outside loop 2013-01-14 20:53:00 +01:00
Tom Payne af88fb415b Remove forEachTileCoord 2013-01-14 16:21:58 +01:00
Tom Payne 424dbd7582 Remove problematic (and unused) clone methods, move contains out of ol.Rectangle 2012-09-25 00:04:45 +02:00
Tom Payne a416d1f601 s/TileBounds/TileRange/ 2012-09-24 14:33:24 +02:00