Tom Payne
e62178759c
Fix use of this in ol.source.BingMaps
2013-03-24 19:26:34 +01:00
Tom Payne
685f2b6f5f
Make time-sensitive test less sensitive
2013-03-24 16:14:04 +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
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
e023e6fa2f
Avoid creating extra ol.Size object in getPixelBoundsForTileCoordAndResolution
2013-03-24 13:49:47 +01:00
Tom Payne
5771057ae1
Reuse ol.TileRange object in forEachTileCoordParentTileRange
2013-03-24 13:46:23 +01:00
Tom Payne
731fcd3d17
Move shader support code into ol.webgl
2013-03-23 18:29:26 +01:00
Tom Payne
4ec8bf2360
Configure Travis to build shaders with glsl-unit
2013-03-23 18:20:34 +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
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
e2d200882a
Merge pull request #422 from tschaub/stop-ignoring-global-leaks
...
Stop ignoring global leaks
2013-03-23 05:34:20 -07:00
Tim Schaub
d9ab545985
Stop ignoring global leaks
...
The `goog.dom.ViewportSizeMonitor` (used in map.js) creates a global leak by setting `goog.UID_PROPERTY_` on the monitored window. In order to test that we don't have other global leaks, we preemptively set the property so Mocha can compare the global before and after our tests.
2013-03-23 05:50:54 -06:00
Tim Schaub
53fc6f3989
Merge pull request #421 from tschaub/global-leak
...
Fix global leak in WebGL image layer test
2013-03-23 03:59:45 -07:00
Tim Schaub
ff28c0b793
Fix global leak in WebGL image layer test
2013-03-23 04:38:12 -06: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
24452b0bcb
Use operators instead of Math.max/min
2013-03-22 19:27:52 +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
72437ff57b
Use more compact constants
2013-03-22 17:33:19 +01:00
Tom Payne
69370ce629
Use ol.structs.Buffer.getUsage
2013-03-22 17:33:19 +01:00
Tom Payne
35df0693e0
Add usage to ol.structs.Buffer
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
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
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
57abbddf50
Add ol.math.roundUpToPowerOfTwo
2013-03-22 17:25:31 +01:00
Tom Payne
6c32170a08
Promote texture and framebuffer management into base class
2013-03-22 17:25:27 +01:00
Tom Payne
657f58005e
Remove unused function
2013-03-22 17:24:26 +01:00
Tom Payne
69f92615b1
Add missing variable declaration
2013-03-22 17:24:03 +01:00
Tom Payne
c04e9c8870
Add ol.Rectangle.extendXY
2013-03-22 17:23:58 +01:00
Tom Payne
483375ca42
Add ol.Extent.createEmptyExtent
2013-03-22 17:23:50 +01:00
Tom Payne
5186fa44f5
Add ol.Rectangle.isEmpty
2013-03-22 17:23:44 +01:00
Tom Payne
0488612449
Allow rectangles to be empty
2013-03-22 17:23:38 +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
5169161d93
Extend equalArray to consider NaNs to be equal
2013-03-22 17:23:20 +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