Allow layers that are not managed by the map

When a layer is configured with a map, it will be added on top of other
layers, and not be managed in the map's features collection. The layerState
will have an 'unmanaged' flag for such layers. For vector layers, this flag
is used to not skip any features.
This commit is contained in:
Andreas Hocevar
2015-06-03 12:10:39 +02:00
parent f186ed3deb
commit 54da473991
6 changed files with 107 additions and 3 deletions

View File

@@ -83,7 +83,8 @@ ol.renderer.webgl.VectorLayer.prototype.composeFrame =
viewState.center, viewState.resolution, viewState.rotation,
frameState.size, frameState.pixelRatio, layerState.opacity,
layerState.brightness, layerState.contrast, layerState.hue,
layerState.saturation, frameState.skippedFeatureUids);
layerState.saturation,
layerState.unmanaged ? {} : frameState.skippedFeatureUids);
}
};