Guillaume Beraudo
43f72031f9
Add Z-index layer ordering tests
2015-09-03 11:31:57 +02:00
Guillaume Beraudo
3811228ac7
Add Z-index to layers
...
This commit allows setting a z-index property on the layers and uses
it in the canvas, WEBGL and DOM map renderers for ordering the layers
before rendering.
Default z-index is 0 for managed layers and 1000 for unmanaged ones.
It allows always on bottom, always on top and more complex layer layouts.
2015-09-03 11:31:57 +02:00
Andreas Hocevar
817370a65b
Use 'managed' instead of 'unmanaged' in LayerState
2015-06-11 18:34:20 +02:00
Andreas Hocevar
5a2a7d30e6
Add 'unmanaged' to ol.layer.LayerState
2015-06-11 10:17:11 +02:00
Frederic Junod
dc0be1228c
Add more ol.layer.Group tests
2015-04-20 09:20:19 +02:00
Frederic Junod
a77c4ec6c5
Remove layerGroup.setLayers(null) test
...
Since 96f7d6323a , the `layers` parameter to `ol.layer.Group#setLayers` can't be `null`.
2015-04-07 17:08:12 +02:00
Bart van den Eijnden
3db26f1d2b
Use the layergroup's extent if no extent provided
2014-11-20 08:35:40 +01:00
Tim Schaub
1daf36956c
Layer extent option
...
If provided, the layer extent will be used to limit data requests and rendering. If undefined, to limit will be imposed.
2014-07-24 10:26:07 -06:00
Frederic Junod
4525276c6e
Rename ol.Collection#getAt to ol.Collection#item
...
TouchList, DOMStringList, DOMTokenList, NodeList all have an
`item(index)` function to retrieve an item from a list.
We should do the same.
2014-06-06 09:49:12 +02:00
Tim Schaub
7826036307
Make getLayerStatesArray return an array of layer states
2014-04-04 07:39:54 -06:00
Tim Schaub
9d5451b1d6
Provide a reference to the layer
2014-04-04 07:36:42 -06:00
Tim Schaub
625007f364
Make enum property name like its value
...
Where an enum value is used as an event type, it should be alllowercase (to follow DOM events). Property names should be ALLUPPERCASE in this case (just as camelCase and PascalCase are converted to CONSTANT_CASE).
2013-12-11 16:54:01 -07:00
Tim Schaub
17e91feb52
Listen for property changes in layer group
...
This avoids a future bug when the ol.ObjectEventType.CHANGE value becomes something different than the goog.events.EventType.CHANGE value.
2013-12-11 12:23:05 -07:00
Tim Schaub
8b8563f0fd
Test change events on layer groups
2013-12-11 01:46:23 -07:00
Tom Payne
167b309242
Replace source ready flag with loading/ready/error enum
2013-09-30 13:30:54 +02:00
Bruno Binet
fa484cca8c
Fix tests for min/maxResolution
2013-09-19 16:59:38 +02:00
Tom Payne
fc2975f346
Rename ol.layer.LayerGroup to ol.layer.Group
2013-09-09 14:23:16 +02:00
Bruno Binet
31c8644716
Add tests for ol.layer.LayerGroup
2013-08-13 12:27:38 +02:00