Tom Payne
4d1ec1ff90
Remove (mostly unused) logger
2013-04-06 17:32:41 +02:00
Tom Payne
4be8c991f7
Add missing Closure Library requires
2013-04-06 14:28:12 +02:00
Tom Payne
da1e5aadd3
Factor out css.js and fix requires
2013-04-05 20:59:16 +02:00
Tom Payne
5680b89c48
Update logos in renderers
2013-04-05 18:27:51 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Frederic Junod
cade8eaf7e
Remove unused local variable
2013-04-05 11:59:07 +02:00
Tom Payne
b32a2e101c
Abort rendering when WebGL context is lost
2013-04-05 00:14:10 +02:00
Marc Jansen
6ca21b32a9
More renames as suggested by @elemoine.
2013-04-04 10:25:11 +02:00
Éric Lemoine
e128bab625
Do not pass tile grid to getTile and tileUrlFunc
...
getTile and the tileUrlFunc are functions of the source, so they do need to be passed the tile grid. The tile source knows its tile grid, and can get the projection's tile grid if it doesn't have a tile grid.
2013-04-02 11:12:43 +02:00
Tom Payne
66c6a8a3e0
Make preload a number of levels instead of a boolean
2013-03-27 14:34:29 +01:00
Tom Payne
494d61250e
Make tile pre-loading a per-layer option
2013-03-27 14:34:29 +01:00
Tom Payne
1d22d2fdde
Tune tile priority functions
2013-03-27 14:34:29 +01:00
Tom Payne
5e8b0de66d
Use tile texture queue
2013-03-27 14:34:29 +01:00
Tom Payne
6221680b0b
Add tile texture queue
2013-03-27 14:34:29 +01:00
Tom Payne
96912c271d
Add optional per-tile callback to manageTilePyramid
2013-03-27 14:34:28 +01:00
Tom Payne
27f9e83780
Refactor ol.TileQueue to extend ol.structs.PriorityQueue
2013-03-27 14:34:28 +01:00
Tom Payne
62877fdf02
Reuse ol.Size object
2013-03-25 11:54:50 +01:00
Tom Payne
4e883b7099
Don't shrink canvas
2013-03-25 11:54:50 +01:00
Tom Payne
6cfe918501
Merge pull request #428 from twpayne/gc-optimizations
...
GC optimizations
2013-03-25 03:54:15 -07:00
Tom Payne
9906c518a7
Rename useTileZXY to useTile
2013-03-25 11:45:20 +01:00
Tom Payne
658b919d20
Merge pull request #425 from twpayne/glsl-unit
...
Use glsl-unit for WebGL shaders
2013-03-25 03:42:27 -07:00
Tom Payne
65e6ed3485
Rename getTileZXY to getTile
2013-03-25 10:10:03 +01:00
ahocevar
560f645384
Merge pull request #420 from ahocevar/icon-defer
...
Don't create tile if rendering needs to be deferred. r=@bartvde
2013-03-25 02:04:50 -07:00
Tom Payne
69d06a6e18
Add comment about automatically generated files
2013-03-25 10:04:32 +01:00
Tom Payne
3a4ef83e79
Tidy up ol.webgl namespace
2013-03-24 15:51:09 +01:00
Tom Payne
dfb631a08f
Replace getTile with getTileZXY
...
This massively reduces the number of temporary ol.TileCoord objects.
Previously an ol.TileCoord object was generated for every potentially
visible tile at the current zoom level and lower, every frame. This
commit eliminates all of those. Now new ol.TileCoord objects are only
allocated when a new tile is created.
2013-03-24 15:24:49 +01:00
Tom Payne
731fcd3d17
Move shader support code into ol.webgl
2013-03-23 18:29:26 +01:00
Tom Payne
711e4be19e
Use glsl-unit in WebGL tile layer renderer
2013-03-23 17:47:02 +01:00
Tom Payne
7300051b69
Use glsl-unit in WebGL map renderer
2013-03-23 17:46:38 +01:00
Tom Payne
c48df12a33
Add infrastructure for glsl-unit
2013-03-23 17:45:44 +01:00
Tom Payne
3fbf7b8c20
Merge pull request #357 from twpayne/load-low-resolution-tiles
...
Load low resolution tiles
2013-03-23 06:00:45 -07:00
ahocevar
28f29e9d40
Don't create tile if rendering needs to be deferred
...
Rendering vector tiles with mixed geometry types does not work
as expected, because the tile is created without the geometries
that need another rendering pass because of missing icons. This
was discovered by @bartvde when working on the KML parser, where
mixed geometry types are common.
This change fixes the issue by breaking out from rendering
entirely when renderFeaturesByGeometryType returns a deferred
state. In addition, there was a related bug because icons are
added to the cache regardless of its loaded state. This is also
fixed now.
2013-03-23 11:34:38 +01:00
Tom Payne
80df629319
Premptively load low resolution tiles
2013-03-22 21:02:09 +01:00
Tom Payne
e3abe376f1
Remove ol.source.TileSource.useLowResolutionTiles
2013-03-22 21:02:06 +01:00
Tom Payne
876fea2fb7
Rename shader variables to match CSS specification
2013-03-22 18:02:31 +01:00
Tom Payne
b7184641b0
Use shorter module name and clean up requires
2013-03-22 17:58:15 +01:00
Tom Payne
69370ce629
Use ol.structs.Buffer.getUsage
2013-03-22 17:33:19 +01:00
Tom Payne
705b71ae2a
Track buffer dirty state by map
2013-03-22 17:33:19 +01:00
Tom Payne
35ee45cefc
Use local variable for texCoordMatrix
2013-03-22 17:25:58 +01:00
Tom Payne
66efba8824
Promote projectionMatrix and texCoordMatrix into base class
2013-03-22 17:25:53 +01:00
Tom Payne
cc41d720fa
Manage buffers in WebGL map renderer
2013-03-22 17:25:47 +01:00
Tom Payne
ecd5158012
Add ol.renderer.webgl.Layer.getWebGLMapRenderer
...
This improves the type checking.
2013-03-22 17:25:42 +01:00
Tom Payne
f770be297d
Use ol.math.roundUpToPowerOfTwo
2013-03-22 17:25:36 +01:00
Tom Payne
6c32170a08
Promote texture and framebuffer management into base class
2013-03-22 17:25:27 +01:00
Éric Lemoine
a12d10e912
Merge pull request #409 from elemoine/tilequeue
...
Tile renderers needn't listen for tile change
2013-03-22 09:17:46 -07:00
Jeff Williams
97879a3572
remove descriptions from JSDoc type tags
2013-03-21 09:54:52 -07:00
Éric Lemoine
1d575309da
Tile renderers needn't listen for tile change
2013-03-21 10:29:01 +01:00
Tim Schaub
825a6d65e8
Properly maintain dirty state during animation
...
The previous logic assumed that if there were any tiles to render, the dirty state should be false. The correct logic is to say that if we don't render during animation, dirty is true.
2013-03-19 07:27:59 -06:00
Frederic Junod
bce9e9d0de
Fix typecast
...
Fix JSC_MISPLACED_TYPE_ANNOTATION warnings with the plovr 2013 release
candidate (http://plovr.com/plovr-2013-rc.jar )
2013-03-14 15:59:21 +01:00
Bruno Binet
9b1c389c80
Remove unused goog.require directives
2013-03-14 11:39:43 +01:00