Commit Graph

381 Commits

Author SHA1 Message Date
Tim Schaub
e079c19413 Don't repeatedly render while waiting for tiles to load
Instead of going into an unnecessary animation loop, we can simply wait to be notified when tiles load.

The WebGL renderer still sets frameState.animate true, but I think this too should be unnecessary (full page example works without it, side-by-side example shows it cannot yet be removed).
2013-02-06 16:10:46 -07:00
Tim Schaub
2bd29ff60e Only track tiles that are actually wanted
Instead of keeping track of wanted tile ranges, we can instead track wanted tiles individually.  This provides enough for the map to know how to prioritize tiles and should be more efficient (no extra calls to extend tile ranges or check for tile containment within a range).
2013-02-06 16:08:24 -07:00
Tom Payne
1f460975bb Port WebGL texture cache to ol.structs.LRUCache 2013-02-04 18:37:12 +01:00
Tom Payne
e6eb401e36 Add missing goog.requires 2013-01-30 23:47:13 +01:00
Tom Payne
6e247d9331 Rename modules for support detection 2013-01-30 22:48:03 +01:00
Tom Payne
b6f856f962 Remove unused goog.requires 2013-01-30 22:48:03 +01:00
Tom Payne
3bd1b92b05 Promote renderFrame from ol.renderer.*.LayerRender to ol.renderer.LayerRenderer 2013-01-28 19:56:57 +01:00
Tom Payne
5558d6108c Promote handleLayerRendererChange from ol.renderer.webgl.Map to ol.renderer.Map 2013-01-28 19:56:56 +01:00
Tom Payne
49734de240 Promote dispatchChangeEvent from ol.renderer.webgl.Layer to ol.renderer.Layer 2013-01-28 19:56:56 +01:00
Tom Payne
4701d117f7 Always dispatch change events on load/opacity/visible changes 2013-01-28 19:56:56 +01:00
Éric Lemoine
4a64837ba1 Make map handle background color changes 2013-01-24 22:31:08 +01:00
Tom Payne
8cac270234 Use + rather than Number for string to number conversion 2013-01-24 16:31:56 +01:00
Tom Payne
0d7196c098 Expire old textures from texture cache 2013-01-23 19:59:02 +01:00
Tom Payne
b770aaa2f5 Add tile cache expiry infrastructure 2013-01-23 14:31:24 +01:00
Tom Payne
4ab09d6df2 Merge pull request #140 from twpayne/array-clean-ups
Array clean ups
2013-01-22 06:00:04 -08:00
Frederic Junod
2f2ea373ca Add ol.renderer.Map.getCanvas function. Only valid with the canvas and webgl renderers 2013-01-21 15:18:18 +01:00
Tom Payne
386bb636bb Add missing dependencies on goog.array 2013-01-21 14:20:11 +01:00
Tom Payne
4846a6a7b3 Only update wanted tiles if not all tiles are loaded 2013-01-19 15:03:01 +01:00
Tom Payne
3ec2014ad1 Rename tileUsage to usedTiles 2013-01-19 15:03:01 +01:00
Tom Payne
1c524caae6 Discard unwanted tiles from tile queue 2013-01-19 15:03:01 +01:00
Peter Robins
11938d2264 Add missing dependencies, refs #116 2013-01-18 13:01:10 +01:00
Tim Schaub
10672ad303 Standardizing color ranges (see #129) 2013-01-17 14:19:50 -07:00
Tom Payne
b880ab80ee Factor out updateTileUsage 2013-01-17 11:51:38 +01:00
Tom Payne
9fbabc3696 Refactor attribution control 2013-01-16 16:34:31 +01:00
Tom Payne
183aac90fa Remove unused requires 2013-01-14 20:52:47 +01:00
Tom Payne
8ced15ce2e Move closure out of loop, and use loop rather than forEachTileCoord 2013-01-14 16:21:58 +01:00
Tom Payne
0916f14536 Use a loop rather than tileRange.forEachTileCoord 2013-01-14 16:21:58 +01:00
Tom Payne
be04053ef1 Move common event handlers into base class 2013-01-14 12:46:39 +01:00
Tom Payne
9764e76975 Move pixel/coordinate matrices into frame state, remove canRotate 2013-01-14 12:46:39 +01:00
Tom Payne
78e8e34fe6 Add missing instance variable declaration, thanks @elemoine 2013-01-14 11:13:34 +01:00
Tom Payne
3f6e6169af Hide canvas when map is not defined 2013-01-12 19:24:20 +01:00
Tom Payne
0443ebc3fa Remove stale FIXMEs 2013-01-12 19:23:54 +01:00
Tom Payne
97207e5723 Remove rarely-used logger 2013-01-12 19:01:09 +01:00
Tom Payne
be28fb4ccc Don't try to overload method return type 2013-01-12 18:58:36 +01:00
Tom Payne
655b6a1b00 Always free WebGL resources in post render 2013-01-12 18:57:50 +01:00
Tom Payne
a26deb62bf Remove unused variable 2013-01-12 18:54:09 +01:00
Tom Payne
92d3d001c0 Merge pull request #108 from twpayne/texture-uploads
Prioritize and throttle texture uploads
2013-01-12 03:27:37 -08:00
Tom Payne
6d44736e2f Prioritize and throttle texture uploads 2013-01-12 02:32:53 +01:00
Tom Payne
52df441cf8 Add tile queue 2013-01-11 16:18:07 +01:00
Tom Payne
f00e299039 Register post-render functions instead of using an event 2013-01-11 15:49:21 +01:00
Tom Payne
f3cace499c Implement frame state and animation architecture 2013-01-11 15:48:24 +01:00
Tom Payne
97d83666a6 Factor out ImageTile and ImageTileSource 2013-01-11 01:18:57 +01:00
Tom Payne
0d1e6ea766 Move forEachReadyVisibleLayer into WebGL renderer 2013-01-10 16:43:42 +01:00
Éric Lemoine
927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +01:00
Tom Payne
b40085ca41 Fix non-view-related typecasts in ol.renderer.webgl.TileLayer 2013-01-07 13:19:00 +01:00
Tom Payne
e05591f6ab Fix typecast in ol.renderer.webgl.Layer 2013-01-07 13:18:59 +01:00
Tom Payne
cfaee15c9f Factor out color matrix generation, move color matrix into layer renderer 2013-01-05 12:30:18 +01:00
Tom Payne
8404142cec Avoid getting map twice 2013-01-05 12:18:42 +01:00
Tom Payne
d3a0f87438 Remove inadvertent double render 2013-01-05 12:18:35 +01:00
Tom Payne
118b233457 More strict matrix type 2013-01-05 12:17:37 +01:00