Commit Graph

403 Commits

Author SHA1 Message Date
Éric Lemoine 516f21eb17 Make ZoomSlider use View2D value/resolution funcs 2013-04-08 12:51:14 +02:00
Éric Lemoine 631afb07ab Add value/resolution functions to View2D 2013-04-08 12:28:37 +02:00
Tom Payne 4be8c991f7 Add missing Closure Library requires 2013-04-06 14:28:12 +02:00
Tom Payne 02196c94b5 Redefine ol.Coordinate to be Array.<number> 2013-04-05 12:30:37 +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
Éric Lemoine dbf9ce8844 Correct ns for ol.source.wms tests 2013-03-29 15:58:01 +01:00
Tom Payne dfe30f9feb Merge pull request #423 from twpayne/preemptive-webgl-texture-uploads
White flash occurs when zooming out from initially zoomed in view with WebGL renderer
2013-03-27 16:00:56 -07:00
Tom Payne 3e4f1773bc Replace isHeap with assertValid 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 f12f5ccc67 Factor out core elements of ol.TileQueue into ol.structs.PriorityQueue 2013-03-27 14:34:28 +01:00
Éric Lemoine de1575e457 One direction pinch zoom 2013-03-27 11:52:42 +01:00
Tom Payne 7a243b310f Move ol.tilegrid.XYZ tests to their proper place 2013-03-25 12:03:13 +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 f7cc8fa738 Remove ol.TileRange.clone 2013-03-25 11:33:06 +01:00
Tom Payne 65e6ed3485 Rename getTileZXY to getTile 2013-03-25 10:10:03 +01:00
Tom Payne 685f2b6f5f Make time-sensitive test less sensitive 2013-03-24 16:14:04 +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 247fc8f031 Make reverseIntersection argument mandatory 2013-03-24 13:59:35 +01:00
Tom Payne aeeaa79393 Avoid creating ol.Coordinate objects to call getTileCoordForCoordAndResolution_ 2013-03-24 13:56:23 +01:00
Tom Payne 5771057ae1 Reuse ol.TileRange object in forEachTileCoordParentTileRange 2013-03-24 13:46:23 +01:00
Tom Payne cb1b1b8883 Merge pull request #418 from twpayne/webgl-core-improvements
WebGL core improvements
2013-03-23 05:55:23 -07:00
Tim Schaub ff28c0b793 Fix global leak in WebGL image layer test 2013-03-23 04:38:12 -06:00
Tom Payne ba0e7ae89c Allow a ol.structs.Buffer to update multiple dirty sets 2013-03-22 17:33:19 +01:00
Tom Payne 4ee73bc02f Add ol.structs.IntegerSet.intersectsRange 2013-03-22 17:33:13 +01:00
Tom Payne 57abbddf50 Add ol.math.roundUpToPowerOfTwo 2013-03-22 17:25:31 +01:00
Tom Payne 657f58005e Remove unused function 2013-03-22 17:24:26 +01:00
Tom Payne 5192c5e64a Reverse order of arguments to set and s/index/offset/ 2013-03-22 17:23:30 +01:00
Tom Payne 713ad2cfb7 Replace unused entries with NaNs 2013-03-22 17:23:25 +01:00
Tom Payne 6ab5cfae8c Add ol.structs.IntegerSet.toString 2013-03-22 17:23:15 +01:00
Tom Payne 9047e98889 Add initial ol.structs.Buffer 2013-03-22 17:23:08 +01:00
Tom Payne 1833ec15e2 Refactor ol.structs.IntegerSet to use a packed array 2013-03-22 17:23:03 +01:00
Tom Payne 070b80c28d Add ol.structs.IntegerSet 2013-03-22 17:22:57 +01:00
ahocevar 5719160155 Less context
This change removes all changes that were anticipated here for
WMS GetFeatureInfo handling, including the IWMS interface and
the goog.provide for 'ol.tilegrid'. I'll create a separate pull
request for WMS GetFeatureInfo eventually, taking into account
the suggestions from the discussion in #402.
2013-03-20 13:41:36 +01:00
ahocevar 57fdd78a19 Fixing requires 2013-03-20 10:55:58 +01:00
ahocevar 46ca98e484 More context for url functions
With this change, url functions are called in the scope of the
source they are configured for. This allows us to simplify the
url function generation for WMS, using a more generic
createFromParamsFunction factory, and the source's new params
member.

Note that there is also a new url member for WMS sources. This
is the WMS base url (the first one in case there is an array of
urls for faster tile access). This can be used for accessing
other WMS services (especially GetFeatureInfo).
2013-03-20 10:45:54 +01:00
Tom Payne a1a2ab415f Fix some trivial typos 2013-03-19 21:34:31 +01:00
Tim Schaub 86eb65cc13 Merge pull request #395 from tschaub/no-test-markup
Create test specific markup in the individual tests as needed instead of relying on a common dom structure for all tests.
2013-03-19 09:18:41 -07:00
Tom Payne 6cc4cb33d0 Use more consistent directory structure 2013-03-19 12:03:31 +01:00
Tim Schaub 27ccd13e48 Create test specific markup in tests
Instead of relying on a shared dom structure, the tests should create (and destroy) elements as needed.
2013-03-18 22:53:04 -06:00
Tim Schaub fad57a0fe5 Clarifying which var is accesed
This test creates its own zoomslider and doesn't access the one from the closure.
2013-03-18 21:52:01 -06:00
Tim Schaub 928457e174 Correcting test semantics
Despite what the test comment says, the orientation of this slider is horizontal.
2013-03-18 21:50:00 -06:00
Tim Schaub 6b5e251279 Fix global leak
A bit curious that the linter didn't catch this.  My test runner fails with it.
2013-03-18 17:54:36 -06:00
Tom Payne c9f43b4da7 Move equalArray into expect.js 2013-03-15 01:39:11 +01:00
Tom Payne 79c77a6369 Move intersect into expect.js 2013-03-15 01:39:11 +01:00
Tom Payne 7c7c4df3fc Move called into expect.js 2013-03-15 01:17:28 +01:00
Tom Payne 62011dab28 Move roughlyEqual into expect.js 2013-03-15 01:17:28 +01:00
Tom Payne 7222464426 Don't use goog.array in ol.Collection tests 2013-03-14 14:50:23 +01:00
Bruno Binet 81089b2199 Remove unused goog.require directives 2013-03-14 12:39:51 +01:00
Bruno Binet 15ce80f42e Merge pull request #364 from bbinet/fix-check-requires
Fix check for unused goog.require directives
2013-03-14 04:29:41 -07:00
Bruno Binet 9b1c389c80 Remove unused goog.require directives 2013-03-14 11:39:43 +01:00