Commit Graph

1170 Commits

Author SHA1 Message Date
Tim Schaub 74281d2b00 Merge from master 2013-01-17 18:12:06 -07:00
Tom Payne 6542f2037b Merge pull request #127 from twpayne/animated-zoom
Animated zoom
2013-01-17 15:23:39 -08:00
Tom Payne 37d29fb82b Merge pull request #131 from twpayne/add-missing-exports
Add missing exports
2013-01-17 15:21:28 -08:00
Tom Payne e3c85dec8e Export ol.View2D 2013-01-18 00:19:45 +01:00
Tom Payne d34a71e453 Export ol.RendererHints.createFromQueryData 2013-01-18 00:19:22 +01:00
Tom Payne 76e600d5f6 Fix Stamen exports 2013-01-18 00:19:06 +01:00
Tom Payne 4f2c657cf2 Export ol.tilegrid.XYZOptions 2013-01-18 00:17:50 +01:00
Tom Payne 0122c6cc0c Export ol.tilegrid.TileGridOptions 2013-01-18 00:17:09 +01:00
Tim Schaub fe56b15c52 Clear canvas with opacity 1 2013-01-17 15:30:16 -07:00
Tom Payne 7c660f6ac0 Export animation functions, thanks @elemoine 2013-01-17 22:58:05 +01:00
Tim Schaub 10672ad303 Standardizing color ranges (see #129) 2013-01-17 14:19:50 -07:00
Tim Schaub b36eab1dfa Properly set transform before filling background (closes #128)
Order of args is m11, m12, m21, m22, dx, dy
2013-01-17 13:40:00 -07:00
Tim Schaub 141e5aa9fc Trim search string before use
The `window.location.search` string includes the "?" symbol.  Without this change, `createFromQueryData` only works if the "renderer" parameter is not in first position (see 4037bafc45).
2013-01-17 13:05:47 -07:00
Tom Payne 9428a94968 Add animated zoom to keyboard zoom interaction 2013-01-17 16:21:53 +01:00
Tom Payne 90b7cfb330 Add animated zoom to zoom control 2013-01-17 16:21:53 +01:00
Tom Payne 965d5e2cc8 Add animation duration to ol.View2D.zoom 2013-01-17 15:50:28 +01:00
Tom Payne 0257db05df Add zoom from animation 2013-01-17 15:38:11 +01:00
Tom Payne 95b48bdec4 Add ol.easing.linear 2013-01-17 15:38:11 +01:00
Tom Payne 54327fb750 Add canvas renderer 2013-01-17 13:54:52 +01:00
Tom Payne 7e7356dfd6 Add canvas checks 2013-01-17 13:54:52 +01:00
Tom Payne 1468a04f8b Merge pull request #122 from twpayne/default-tile-size
Add default tile @define, refs #114, fixes #120
2013-01-17 04:49:38 -08:00
Tom Payne 04b18a8a83 Merge pull request #121 from twpayne/attribution-control-refactoring
Attribution control refactoring
2013-01-17 04:46:57 -08:00
Tom Payne 4657b7ca97 Remove removeLayer, thanks @fredj 2013-01-17 12:40:54 +01:00
Tom Payne c56e1f8b92 Ensure DOM element is removed when layer is removed 2013-01-17 12:12:09 +01:00
Tom Payne b880ab80ee Factor out updateTileUsage 2013-01-17 11:51:38 +01:00
Tom Payne 1278ccb942 Add default tile size @define, refs #114, fixes #120 2013-01-16 17:49:51 +01:00
ahocevar 8a38f9aa9d Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-01-16 16:34:59 +01:00
Tom Payne 9fbabc3696 Refactor attribution control 2013-01-16 16:34:31 +01:00
ahocevar 7c05587aed Merge pull request #114 from ahocevar/resolutions
Use validity extent to generate default resolutions. r=@twpayne,@elemoine
2013-01-16 07:17:10 -08:00
Tom Payne 41ccb4dfcd Add ol.Rectangle.extend 2013-01-16 13:53:38 +01:00
Tom Payne 06628a88e6 Update mouse position on each frame 2013-01-16 11:26:09 +01:00
Tom Payne 11ec1de89b Refactor mouse position control to use postrender event 2013-01-16 11:25:59 +01:00
Tom Payne 505987869e Fire postrender events 2013-01-15 18:38:12 +01:00
Tom Payne 4037bafc45 Add function to chose renderer from query string 2013-01-15 10:26:16 +01:00
Tom Payne 859af576d5 Move var outside loop 2013-01-14 20:53:00 +01:00
Tom Payne c679bccbb9 Join short lines 2013-01-14 20:53:00 +01:00
Tom Payne 183aac90fa Remove unused requires 2013-01-14 20:52:47 +01:00
Tom Payne 8966e17b89 Structure DOM renderer code to be more similar to WebGL renderer code 2013-01-14 16:33:15 +01:00
Tom Payne af88fb415b Remove forEachTileCoord 2013-01-14 16:21:58 +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
ahocevar 87ce763ccb Use validity extent to generate default resolutions
Previously, the TiledWMS source generated a resolutions array
derived from the world extent in meters, to match the default
Web Mercator resolutions of the map. This wouldn't work for
projections with distance units different than meters. It is
better to commit to a default resolutions array where zoom level
0 is the validity extent of the projection (not the Web Mercator
world extent!) at a 256 pixel tile size.
2013-01-14 16:10:55 +01:00
Tom Payne eff96ca16c DOM renderer should re-render when layers are added or removed 2013-01-14 12:46:40 +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 3febb24529 Don't remove tiles when animating 2013-01-14 12:35:54 +01:00
Tom Payne bafb53f2e1 Make animations set animating hint 2013-01-14 12:35:54 +01:00
Tom Payne 969553cede Clone hints array so that pre-render functions can modify it 2013-01-14 12:35:54 +01:00
Tom Payne c48bb6142e Add animating hint 2013-01-14 12:35:54 +01:00
Tom Payne 2ea6f0903c Don't remove tiles while panning 2013-01-14 12:35:54 +01:00