Andreas Hocevar
e18d41b5e0
Remove gratuitous debug assertions
2016-08-04 11:29:54 +02:00
Andreas Hocevar
e0015b3d4e
Use goog.DEBUG instead of ol.DEBUG for now
2016-08-04 11:29:54 +02: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
f8f2cd11d5
Replace goog.getUid with ol.getUid
2016-07-20 11:01:00 +00:00
Peter Robins
0713e680e1
Replace goog.abstractMethod
2016-07-19 09:08:23 +00:00
Peter Robins
294a129083
Replace goog.webgl
2016-07-02 10:40:55 +00:00
Andreas Hocevar
3e928718f4
ol.vec.Mat4 improvements
...
* Rename ol.vec.Mat4.fromMatrix to ol.vec.Mat4.fromTransform
* Make result from ol.vec.Mat4.fromTransform immutable by adding result
matrix as argument.
2016-06-23 15:52:25 +02:00
Andreas Hocevar
6b4ee42c90
Refactor to a more convenient internal API
2016-06-23 13:10:41 +02:00
Andreas Hocevar
cf7ff841a7
Remove use of goog.vec.*
2016-06-23 13:10:41 +02:00
Frederic Junod
e289bfbb7d
Use ol.inherits instead of goog.inherits
2016-06-08 08:38:12 +02:00
Björn Harrtell
44e04be67f
Get rid of goog.functions
2016-04-01 10:32:15 +02:00
Tim Schaub
0eb7e8220d
Immediate rendering for all vector contexts
2016-03-18 17:31:14 -06:00
Tim Schaub
88f8515fb6
Shorter names for drawing methods
2016-03-18 17:04:44 -06:00
Frederic Junod
d7c0aa4887
Add missing ol.render.Feature type annotation
...
Leftover from #4219
2016-02-22 10:02:15 +01:00
Tim Schaub
8aecb3270c
Replace goog.object.isEmpty() with ol.object.isEmpty()
2016-02-04 06:54:44 -07:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Frederic Junod
8d72589743
Remove use of goog.object.containsKey
2015-11-24 10:17:01 +01:00
Frederic Junod
ef9b64673e
Remove unused local variables
2015-10-01 13:38:55 +02:00
Marc Jansen
31a68e21a5
Remove goog.isNull in render classes
2015-10-01 09:17:14 +02:00
Tim Schaub
b48cabee28
Remove unnecessary goog.isDefAndNotNull() calls
2015-09-29 09:32:51 -06:00
Tim Schaub
d6f03697d7
Remove hue, saturation, contrast, and brightness
2015-09-27 13:16:30 -06:00
Tim Schaub
b3b31ea16d
Inline various goog.isDef() calls
2015-09-27 10:51:03 -06:00
Tim Schaub
83c59ee255
Inline goog.isDef() calls for properties
2015-09-27 10:40:20 -06:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
a86c270f6a
Inline simple !goog.isDef() calls
2015-09-27 10:31:16 -06:00
Tim Schaub
6638ae855d
Inline simple !goog.isDef() checks
2015-09-27 10:23:30 -06:00
Tim Schaub
b36d697585
Inline goog.isDef() property checks
2015-09-27 10:21:50 -06:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
Frederic Junod
813afe1e3f
Better skippedFeaturesHash type definition
2015-09-02 14:18:34 +02:00
Frederic Junod
49b8f90e66
Add missing goog.provide
...
The new version of the closure-compiler (version 20150729) wants that all the classes
tagged with `@constructor` to be provided (with `goog.provide`).
2015-08-25 09:26:10 +02:00
Guillaume Beraudo
e57919e55b
Skip features without geometry during webgl replay
...
Setting a feature geometry to null or undefined and triggering a hit
detection was throwing an exception.
This patch handles a batched feature without a geometry in the same
fashion as skipped features.
An equivalent patch has been applied to the canvas replay.
2015-08-07 09:50:25 +02:00
Frederic Junod
0a6745f1e4
Remove unused goog.require
...
Found by the latest version of closure-compiler (v20150729)
2015-08-04 10:01:11 +02:00
Guillaume Beraudo
0e32456108
Use an abstract base class instead of IVectorContext
...
By having the abstract methods in the base class, subclasses can simply
override the methods they actually provide.
Additionally, this change fixes a regression in webgl canvas immediate.
2015-04-04 13:47:53 +02:00
Guillaume Beraudo
7765d7304c
Fix assertion message
2015-04-01 11:29:28 +02:00
Marc Jansen
2077211e67
Reorder assertions and variable declarations.
2015-03-31 10:19:04 +02:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
Frederic Junod
f6b47f086b
Use ol.extent.createOrUpdateFromCoordinate
...
Instead of ol.extent.boundingExtent
2015-02-04 14:14:50 +01:00
Frederic Junod
f9723aa310
Add missing goog.require
2015-02-03 15:52:19 +01:00
tsauerwein
f4500c8f89
Rename *AtPixel to *AtCoordinate if coordinate
2015-01-30 10:00:37 +01:00
tsauerwein
054227fd26
Make signature for *AtPixel methods more consistent
...
pixel/coordinate is the first argument.
2015-01-30 10:00:36 +01:00
tsauerwein
a39544cce0
Implement skipping features for hasFeatureAtPixel
2015-01-22 10:24:59 +01:00
tsauerwein
cf9619f378
Implement skipping features for 1by1 hit detection
2015-01-22 10:24:59 +01:00
tsauerwein
c4ee074274
Implement skipping features for drawReplay
2015-01-22 10:24:59 +01:00
tsauerwein
c85982bbe5
Remove unused variables
2015-01-09 09:21:40 +01:00
tsauerwein
25612f1af2
Unify return statement
...
Only return the callback result if it is truthy,
otherwise return undefined.
2015-01-08 16:12:52 +01:00
tsauerwein
bc71a36292
Implement hasFeatureAtPixel for webgl
2015-01-08 16:12:52 +01:00
tsauerwein
974823dbd4
Refactor createTexture
2015-01-08 15:40:03 +01:00
tsauerwein
38322d615b
Use renderBuffer for hit-detection
2015-01-08 15:38:00 +01:00
tsauerwein
060c9f3bc6
Reduce number of arrays created
2015-01-08 15:38:00 +01:00