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
53a7aad431
Remove goog.isObject not in assertions
2016-07-16 11:07:42 +00:00
Andreas Hocevar
d259ab893e
Use tile keys instead of coord keys
...
This change ensures that tiles with old params or dimensions are discarded
2016-07-14 01:03:30 +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
Frederic Junod
7c15280e81
Remove use of goog.partial
...
Use Function.prototype.bind instead, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Partially_applied_functions_(currying)
2016-05-02 14:52:09 +02:00
Björn Harrtell
44e04be67f
Get rid of goog.functions
2016-04-01 10:32:15 +02:00
Frederic Junod
17b667d6e0
Add missing type casts for goog.partial
2016-02-22 10:02:15 +01:00
Andreas Hocevar
bcf379cc8e
Merge pull request #4794 from ahocevar/fixed-tileloading
...
Make tile loading count no longer depend on source count
2016-02-16 15:51:55 +01:00
Marc Jansen
efa82dccf9
Remove use of goog.isString()
2016-02-06 12:56:55 +01:00
Andreas Hocevar
3f36e0967f
Make tile loading count no longer depend on source count
2016-02-05 09:38:16 +01:00
Andreas Hocevar
0c23d9a7ff
Keep track of tile source count
2016-02-04 06:54:45 -07:00
Tim Schaub
80df1f5ae8
Move opt_useCapture arg to the end of the list
2016-02-03 11:19:38 +01:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01: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
Andreas Hocevar
300b5cad44
Use consistent tile coordinate keys
...
Tile coordinate keys from ol.tilecoord.toString() are different than the ones
from Array.prototype.toString(). Both were used, potentially causing problems.
This change makes them consistent and removes the now unnecessary
ol.tileCoord.toString() function.
2015-12-27 17:59:51 +01:00
Andreas Hocevar
6e2f82c397
Introduce ol.render.Feature
2015-10-28 10:29:02 +01:00
Petr Sloup
ed1e49045a
Allow different source and view projection in image layer renderers
...
To enable image layer reprojection.
2015-10-16 09:28:41 +02:00
Petr Sloup
b0694c1e3b
Add projection parameter to ol.source.Tile#expireCache and #useTile
...
This is required to be able to determine which cache the xyz coordinates
refer to (in case we have more caches).
2015-10-16 09:28:41 +02:00
Petr Sloup
e0cfa1951a
Add projection parameter to ol.source.Tile#forEachLoadedTile
2015-10-16 09:28:41 +02:00
Tim Schaub
ac7db89a91
Replace goog.isDefAndNotNull() with truthy checks
2015-09-29 09:32:51 -06:00
Marc Jansen
bc58c383ba
Replace goog.nullFunction with ol.nullFunction
2015-09-29 16:39:35 +02:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
Frederic Junod
2d92791b17
Remove deprecated checkStructDictInheritance
...
Deprecated since the 20150505 Closure Compiler release.
See https://github.com/google/closure-compiler/wiki/Releases#may-5-2015-v20150505
2015-08-20 11:40:22 +02:00
Tim Schaub
acc97a53eb
Raster source for composing pixels from other sources
2015-07-21 17:12:05 -06:00
Frederic Junod
bb6192bc10
Revert "Implement ol.renderer.Layer#forEachFeatureAtCoordinate"
...
This reverts commit dd07fd7977 .
2015-05-05 09:38:50 +02:00
Frederic Junod
dd07fd7977
Implement ol.renderer.Layer#forEachFeatureAtCoordinate
...
And remove identical implementation in children classes.
2015-04-28 14:08:45 +02:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
Frederic Junod
c0c3057498
Remove unused goog.require
2015-03-26 11:54:37 +01:00
Bart van den Eijnden
4569858882
Add image loading events to image sources
2015-03-17 12:56:39 +01:00
Frédéric Junod
3079924a3d
Merge pull request #3271 from fredj/jsdoc-fixes
...
[wip] Fix misplaced comment blocks
2015-02-25 07:13:19 +01:00
Tim Schaub
22aeb3612e
Remove unused createGetTileIfLoadedFunction function
2015-02-24 15:06:10 -08:00
Frederic Junod
1620a11181
Fix misplaced comment blocks
...
Found while testing the new google-closure release (v20150126)
The code still compiles with the older (default) version.
2015-02-24 17:13:35 +01:00
Tim Schaub
e5432f7cb5
Avoid creating unnecessary images during rendering
2015-02-16 15:11:16 -07:00
Tim Schaub
33c197cf16
Layer renderers should not require a map renderer
2015-02-08 07:25:10 -07:00
Tim Schaub
e0f250483d
Layer renderers don't need access to the map
2015-02-07 16:56:10 -07:00
Tim Schaub
a460cb3983
Fire change instead of calling render on map
2015-02-07 16:46:30 -07:00
Tim Schaub
7f18033171
Make layer renderers observable and re-render on change
2015-02-07 16:42:36 -07:00
Tim Schaub
9081682286
Use provided frame state instead of map for pixel to coord conversion
2015-02-07 16:12:39 -07:00
Frederic Junod
078d3fb007
Add missing goog.require
2015-02-05 10:56:44 +01:00
tsauerwein
f4500c8f89
Rename *AtPixel to *AtCoordinate if coordinate
2015-01-30 10:00:37 +01:00
tsauerwein
4d4bed454a
Avoid pixel->coord->pixel conversion
2015-01-30 10:00:37 +01:00
tsauerwein
225f0739ec
Add forEachLayerAtPixel
2015-01-30 10:00:36 +01:00
Tobias Sauerwein
1702a4ed36
Merge pull request #3066 from tsauerwein/webgl-point-hasFeatureAtPixel
...
Introduce hasFeatureAtPixel
2015-01-22 10:20:00 +01:00
Éric Lemoine
b27c1c82d4
Merge pull request #3107 from elemoine/imagestate
...
Also listen on loading images
2015-01-21 12:50:31 +01:00
Éric Lemoine
4814983306
Also listen on loading images
...
This fixes a bug that occured when an image source was used by multiple maps. In that case the map that didn't load the image wouldn't register a load listener on that image and would therefore not call render to request a re-render of the map.
2015-01-09 09:07:31 +01:00
tsauerwein
d62e910239
Implement hasFeatureAtPixel for canvas
2015-01-08 16:12:52 +01:00