Add named exports for visibleAtResolution function

This commit is contained in:
Frederic Junod
2018-02-14 09:41:55 +01:00
parent 57d35e188c
commit ac32311894
5 changed files with 14 additions and 16 deletions
+2 -2
View File
@@ -81,10 +81,10 @@ inherits(Layer, BaseLayer);
* @param {number} resolution Resolution.
* @return {boolean} The layer is visible at the given resolution.
*/
Layer.visibleAtResolution = function(layerState, resolution) {
export function visibleAtResolution(layerState, resolution) {
return layerState.visible && resolution >= layerState.minResolution &&
resolution < layerState.maxResolution;
};
}
/**