Add named exports for sortByZIndex function

This commit is contained in:
Frederic Junod
2018-02-14 10:39:48 +01:00
parent 4657003811
commit 4f358f018b
4 changed files with 9 additions and 9 deletions

View File

@@ -336,7 +336,7 @@ MapRenderer.prototype.scheduleRemoveUnusedLayerRenderers = function(frameState)
* @param {ol.LayerState} state2 Second layer state.
* @return {number} The zIndex difference.
*/
MapRenderer.sortByZIndex = function(state1, state2) {
export function sortByZIndex(state1, state2) {
return state1.zIndex - state2.zIndex;
};
}
export default MapRenderer;