Add 'unmanaged' to ol.layer.LayerState
This commit is contained in:
@@ -35,6 +35,7 @@ ol.layer.LayerProperty = {
|
|||||||
* saturation: number,
|
* saturation: number,
|
||||||
* sourceState: ol.source.State,
|
* sourceState: ol.source.State,
|
||||||
* visible: boolean,
|
* visible: boolean,
|
||||||
|
* unmanaged: boolean,
|
||||||
* extent: (ol.Extent|undefined),
|
* extent: (ol.Extent|undefined),
|
||||||
* maxResolution: number,
|
* maxResolution: number,
|
||||||
* minResolution: number}}
|
* minResolution: number}}
|
||||||
@@ -142,6 +143,7 @@ ol.layer.Base.prototype.getLayerState = function() {
|
|||||||
saturation: Math.max(saturation, 0),
|
saturation: Math.max(saturation, 0),
|
||||||
sourceState: sourceState,
|
sourceState: sourceState,
|
||||||
visible: visible,
|
visible: visible,
|
||||||
|
unmanaged: false,
|
||||||
extent: extent,
|
extent: extent,
|
||||||
maxResolution: maxResolution,
|
maxResolution: maxResolution,
|
||||||
minResolution: Math.max(minResolution, 0)
|
minResolution: Math.max(minResolution, 0)
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ describe('ol.layer.Layer', function() {
|
|||||||
opacity: 1,
|
opacity: 1,
|
||||||
saturation: 1,
|
saturation: 1,
|
||||||
visible: true,
|
visible: true,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: Infinity,
|
maxResolution: Infinity,
|
||||||
@@ -107,6 +108,7 @@ describe('ol.layer.Layer', function() {
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
saturation: 5,
|
saturation: 5,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: 500,
|
maxResolution: 500,
|
||||||
@@ -200,6 +202,7 @@ describe('ol.layer.Layer', function() {
|
|||||||
opacity: 0.3,
|
opacity: 0.3,
|
||||||
saturation: 0.3,
|
saturation: 0.3,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: 500,
|
maxResolution: 500,
|
||||||
@@ -222,6 +225,7 @@ describe('ol.layer.Layer', function() {
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
saturation: 0,
|
saturation: 0,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: Infinity,
|
maxResolution: Infinity,
|
||||||
@@ -242,6 +246,7 @@ describe('ol.layer.Layer', function() {
|
|||||||
opacity: 1,
|
opacity: 1,
|
||||||
saturation: 42,
|
saturation: 42,
|
||||||
visible: true,
|
visible: true,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: Infinity,
|
maxResolution: Infinity,
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 1,
|
opacity: 1,
|
||||||
saturation: 1,
|
saturation: 1,
|
||||||
visible: true,
|
visible: true,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: Infinity,
|
maxResolution: Infinity,
|
||||||
@@ -179,6 +180,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
saturation: 5,
|
saturation: 5,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: 500,
|
maxResolution: 500,
|
||||||
@@ -230,6 +232,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
saturation: 5,
|
saturation: 5,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: groupExtent,
|
extent: groupExtent,
|
||||||
maxResolution: 500,
|
maxResolution: 500,
|
||||||
@@ -275,6 +278,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 0.3,
|
opacity: 0.3,
|
||||||
saturation: 0.3,
|
saturation: 0.3,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: groupExtent,
|
extent: groupExtent,
|
||||||
maxResolution: 500,
|
maxResolution: 500,
|
||||||
@@ -297,6 +301,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
saturation: 0,
|
saturation: 0,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: Infinity,
|
maxResolution: Infinity,
|
||||||
@@ -317,6 +322,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 1,
|
opacity: 1,
|
||||||
saturation: 42,
|
saturation: 42,
|
||||||
visible: true,
|
visible: true,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: Infinity,
|
maxResolution: Infinity,
|
||||||
@@ -491,6 +497,7 @@ describe('ol.layer.Group', function() {
|
|||||||
opacity: 0.25,
|
opacity: 0.25,
|
||||||
saturation: 25,
|
saturation: 25,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
unmanaged: false,
|
||||||
sourceState: ol.source.State.READY,
|
sourceState: ol.source.State.READY,
|
||||||
extent: undefined,
|
extent: undefined,
|
||||||
maxResolution: 150,
|
maxResolution: 150,
|
||||||
|
|||||||
Reference in New Issue
Block a user