Commit Graph

1200 Commits

Author SHA1 Message Date
Tim Schaub 24edce24f1 Add alternate tiles under tiles at target z
When zooming or panning, if we have tiles at alternate resolutions, those tiles are inserted in the DOM before the tiles at the target resolution.  This means you should see blurry tiles instead of whitespace when panning (assuming you've already zoomed in a bit).
2012-09-26 12:18:11 +02:00
Tim Schaub 48c4cbc1e5 Correcting comment typos 2012-09-26 11:11:51 +02:00
Tim Schaub 8e38ab0fdc Lint free. 2012-09-26 10:58:17 +02:00
Tim Schaub 3479e20b0a Merge branch 'alt-tiles' 2012-09-26 10:55:25 +02:00
Tim Schaub 7f58d1a8c6 Proper handling of out-of-range and alt-z tiles
Tile pruning code separated into to methods for clarity.  Alt-z tiles are only removed when all current-z tiles have loaded.  Thanks @elemoine for the excellent debugging session.
2012-09-26 10:52:17 +02:00
Tim Schaub 299173194c First pass at alt-tile rendering for dom renderer 2012-09-25 20:06:20 +02:00
ahocevar b151304630 Prevent default on mousedown and touchstart for all renderers
By doing this on the map renderer, we do not need to duplicate code for the webgl and dom renderers.
2012-09-25 17:28:01 +02:00
Tom Payne 8369924511 Remove debug code 2012-09-25 14:00:19 +02:00
Tom Payne 06ea619989 Avoid re-rendering framebuffer in simple cases 2012-09-25 13:54:15 +02:00
Tom Payne c2e08861e5 Correct order of transformations 2012-09-25 12:23:11 +02:00
Tim Schaub 900eead7c6 Correct type for imagesToLoad. Add note about shorter path. 2012-09-25 12:08:02 +02:00
ahocevar 6b8e14c623 Don't trigger extra drag events on touch devices. 2012-09-25 08:30:57 +02:00
Tom Payne 2d7a21eaa0 More gjslint fixes 2012-09-25 00:03:53 +02:00
Tom Payne 8394147df1 Satisfy gjslint 2012-09-24 21:25:29 +02:00
ahocevar 002e23cb74 Satisfy latest Closure library/tools. 2012-09-24 17:59:34 +02:00
Tim Schaub 1f9e2aa3c4 Move Layer into ol.layer namespace. 2012-09-24 17:08:36 +02:00
Tom Payne a416d1f601 s/TileBounds/TileRange/ 2012-09-24 14:33:24 +02:00
Tom Payne f8c31ba45c s/ol3/ol/ 2012-09-24 14:21:41 +02:00
Tom Payne f3d9b3332c Move code to be merged into src/attic 2012-07-26 00:21:37 +02:00
Tom Payne 3eefbaa337 Remove merged code 2012-07-22 03:10:33 +02:00
Éric Lemoine 192caa1c65 [ol.layer.TileLayer] do not load tiles outside the layer's extent 2012-06-24 22:25:01 +02:00
ahocevar 81577d6dce Adding Loc.add method. 2012-06-24 10:09:24 +02:00
Tim Schaub 2fcbce30bc For now, we require a projection on loc internally. 2012-06-23 19:59:49 +02:00
ahocevar 026b60826e Removing stub method, and use the real method in Popup. 2012-06-23 16:16:37 +02:00
Tim Schaub df1dfd5295 Adding exports to get advanced compilation. 2012-06-23 15:22:37 +02:00
ahocevar d391c65ac6 New pixel conversion and zoom/center related methods. 2012-06-23 14:21:37 +02:00
Tim Schaub c4f91d498c Prep for more efficient moves. 2012-06-23 12:42:09 +02:00
Tim Schaub 0554bceb29 Drag and zoom without throwing.
(This is a bit tedious, suggests a pending state.)
2012-06-23 02:17:14 +02:00
Tim Schaub b6cfeecdfb Adjust tiles if already rendered. 2012-06-23 01:59:20 +02:00
Tim Schaub 7b41119bc9 Composite renderer creates layer renderers. 2012-06-22 19:46:40 +02:00
Tim Schaub ff9bacf044 Temporary way for map renderers to register. 2012-06-22 19:46:40 +02:00
Tim Schaub 915f7b5330 Clean up old tiles. 2012-06-22 19:46:40 +02:00
Tim Schaub 2fffa0293d Test renderer type. 2012-06-22 17:48:44 +02:00
Tim Schaub 5b2d29878b Tile may be null. 2012-06-22 17:38:59 +02:00
Tim Schaub 0c0eecebd9 Tile index based math (needs simplification). 2012-06-22 17:29:06 +02:00
Tim Schaub db3a6e9c4a Get closest resolution. 2012-06-22 16:14:33 +02:00
Tom Payne 0b06267afe Trigger redraws on tile loads. 2012-06-22 11:02:44 +02:00
Tim Schaub c67ca2660d Partial tile layer renderer. 2012-06-21 19:59:43 +02:00
Petr Pridal 08ad8c80d6 Rename MapRenderer attribut 'target' to 'container' to follow the new conventions. 2012-06-21 17:01:21 +02:00
Tom Payne 8448aba616 Add initial WebGL renderer skeleton 2012-06-21 16:39:47 +02:00
Petr Pridal 6ca9112af2 WebGL MapRenderer inicializaiton with a test (it may fail on computers without WebGL). 2012-06-21 15:51:00 +02:00
Petr Pridal 8fc1e9cc98 More complete constructor of the WebGL MapRenderer. 2012-06-21 13:53:10 +02:00
Tim Schaub 2741a22cf1 Add animate to draw. 2012-06-21 13:31:23 +02:00
Tim Schaub a6f464e473 New name for element.
You are provided a container.  To this container you can append elements, and you are responsible for removing elements that you add.  You cannot move or otherwise alter anything about this container.
2012-06-21 13:28:29 +02:00
Tim Schaub 5da8fc8d49 Allow map renderers access to target. 2012-06-21 12:26:51 +02:00
Petr Pridal cff7ee5db8 WebGL MapRender - initial not finished version. 2012-06-21 12:02:21 +02:00
Tim Schaub 45f734d77e Base for map renderer. 2012-06-21 11:40:51 +02:00
Tim Schaub 9cc501caba Composite renderer requires an element. 2012-06-21 11:30:53 +02:00
Tim Schaub 43c8b89460 Initial pass at tiled layer renderer. 2012-06-21 01:18:57 +02:00
Tim Schaub fe0e242a39 Initial composite map renderer. 2012-06-21 01:17:34 +02:00