Tom Payne
bc10446b0e
Track changes to layers in the map
2013-04-16 18:31:59 +02:00
Tom Payne
07fe17924b
Remove layer renderers in post render function
2013-04-16 18:16:08 +02:00
Tom Payne
4e69b2bb8b
Create and remove layer renderers in renderFrame
...
Previously, the map renderer would listen for layers being added and
removed from the layers collection, and would create and remove layer
renderers in response to these events.
With this change, layer renderers are only created or removed when
renderFrame is called, which leads to somewhat simpler code.
We still need to listen to changes to the layers collection, but now
these only trigger a new render.
This new approach also has an advantage when layers change order.
Swapping the order of two layers involves removing one and re-inserting
it elsewhere. With the old approach, this would cause the deletion and
re-creation of the layer renderer. With this new approach, the layer
renderer is preserved.
2013-04-12 17:50:38 +02:00
Tom Payne
be629a7ed8
Sort jsdoc comments alphabetically
2013-04-12 00:48:55 +02:00
Tom Payne
0371b891a6
Tighten up permission on layer renderers
2013-04-12 00:48:35 +02:00
Tom Payne
d855a35446
Make renderer layer management private
2013-04-12 00:33:37 +02:00
Tom Payne
f0106f391a
Make ol.renderer.Map.map property private
2013-04-12 00:33:37 +02:00
Tom Payne
ee817ba4a2
Clean up ol.renderer.webgl.Map.createLayerRenderer
2013-04-12 00:33:37 +02:00
Tom Payne
df6e13bdc0
Clean up ol.renderer.dom.Map.createLayerRenderer
2013-04-12 00:33:33 +02:00
Frederic Junod
7b0e036b83
Hide the control if the Fullscreen API is not supported
2013-04-11 18:25:31 +02:00
Frederic Junod
8206cf111f
Fix full screen button state
2013-04-11 18:25:31 +02:00
Tim Schaub
93041becbe
Toggle css class and use css content for anchor
2013-04-11 18:25:31 +02:00
Tom Payne
cef6fe4930
Add full screen control
2013-04-11 18:25:31 +02:00
Tom Payne
ac40769155
Clear tiles that are not fully covered
2013-04-11 15:50:32 +02:00
Éric Lemoine
d1021b6ee0
Refactor and fix canvas tile layer renderer
2013-04-11 09:26:57 +02:00
Éric Lemoine
a344e4af8c
Merge pull request #528 from elemoine/touch
...
Touch interactions should use requestRenderFrame
2013-04-10 22:44:27 -07:00
ahocevar
37ca407e50
Merge pull request #529 from ahocevar/global
...
Don't use window and document
2013-04-10 13:56:05 -07:00
Tim Schaub
b499f71d97
Add an updateSize method
...
We need a non-private/protected method to call when the map viewport size changes.
2013-04-10 12:47:06 -06:00
ahocevar
a437bea61f
Use no browser globals at all
2013-04-10 16:53:45 +02:00
Éric Lemoine
b6a6ba95cc
Touch zoom interaction requests render frames
2013-04-10 16:15:58 +02:00
Éric Lemoine
703842a021
Touch rotate interaction requests render frames
2013-04-10 16:15:58 +02:00
Éric Lemoine
1e3e7fb0c1
Touch pan interaction request render frames
2013-04-10 16:15:58 +02:00
Éric Lemoine
ce985ba272
Remove extra /**
2013-04-10 16:15:58 +02:00
Éric Lemoine
38914bc95b
addPreRenderFunction calls requestRenderFrame
...
So there's no need to call requestRenderFrame prior to calling addPreRenderFunction.
2013-04-10 16:15:58 +02:00
ahocevar
dc1d7a1aba
Don't use window and document
...
With this change, our JavaScript can also be executed by
non-brower engines.
2013-04-10 15:48:17 +02:00
ahocevar
ae5d1cee1e
Merge pull request #527 from ahocevar/jsdoc-filtered
...
Only document the exported API, not every symbol. r=@elemoint
2013-04-10 06:28:25 -07:00
Éric Lemoine
3bb476e752
Merge pull request #526 from elemoine/OSM
...
OpenStreetMap to OSM renaming
2013-04-10 06:27:04 -07:00
Éric Lemoine
091cc10f08
Merge pull request #520 from elemoine/view2d
...
The view does not know about the map
2013-04-10 05:12:36 -07:00
ahocevar
1e0e30a9ed
Use a public return type for a public function
2013-04-10 11:34:03 +02:00
ahocevar
8acfa08766
Making the linter happy
...
Although *.jsdoc files are none of the linter's business...
2013-04-10 11:24:27 +02:00
ahocevar
9cb85ea9a9
Adding the projection namespace
2013-04-10 11:18:23 +02:00
Éric Lemoine
a694661793
OpenStreetMap to OSM renaming
...
OSM is a well-known name, and is shorter than OpenStreetMap.
2013-04-10 10:07:49 +02:00
Éric Lemoine
2d5381ae41
Move zoom from View2D to Interaction
2013-04-10 08:52:07 +02:00
Éric Lemoine
dbca68650c
Move rotate from View2D to Interaction
2013-04-10 08:52:06 +02:00
Éric Lemoine
51094139a8
Move pan function from View2D to Interaction
2013-04-10 08:27:47 +02:00
Tom Payne
5a2483e224
Increase default tile cache size
2013-04-09 22:14:54 +02:00
Tom Payne
29b78a32e8
Merge pull request #519 from twpayne/tile-garbage-clean-ups
...
Tile garbage clean-ups
2013-04-09 13:12:01 -07:00
Tom Payne
680b31c5e0
Eliminate an ol.TileCoord allocation
2013-04-09 19:54:15 +02:00
Tom Payne
fe03ebe99c
Re-use ol.Extent objects
2013-04-09 19:19:45 +02:00
Tom Payne
ee8e565be2
Enable ol.Extent re-use
2013-04-09 19:19:45 +02:00
Tom Payne
e08d19ac55
Add ol.Extent.createOrUpdate
2013-04-09 19:19:44 +02:00
Tom Payne
e556c87a7c
Re-use ol.TileRange objects
2013-04-09 19:19:20 +02:00
Tom Payne
e30109913e
Enable ol.TileRange re-use
2013-04-09 19:19:20 +02:00
Tom Payne
7a4672d429
Add ol.TileRange.createOrUpdate
2013-04-09 19:19:19 +02:00
Tom Payne
5bd67e1325
Re-use ol.TileCoord objects
2013-04-09 19:19:11 +02:00
Tom Payne
5a4033db7a
Enable ol.TileCoord re-use
2013-04-09 19:19:11 +02:00
Tom Payne
7b58685462
Add ol.TileCoord.createOrUpdate
2013-04-09 19:19:11 +02:00
Tim Schaub
2ecaf2bc69
Merge pull request #501 from tschaub/logical
...
Logical filter touch-ups
2013-04-09 09:21:13 -07:00
Éric Lemoine
396ee5ce3d
Add constrainResolution|Rotation to ol.View2D
2013-04-09 17:06:18 +02:00
Éric Lemoine
6bb36452cb
Add calculateCenterZoom|Rotation to ol.View2D
2013-04-09 16:50:48 +02:00