From b0865c05f7419379c8bd0269fb12feeb48fc14e5 Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Tue, 25 Oct 2016 13:24:05 +0200 Subject: [PATCH] Add fallback for ExtJS5 to return the layer. --- src/GeoExt/data/LayerModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GeoExt/data/LayerModel.js b/src/GeoExt/data/LayerModel.js index d493d092d..93167a96d 100644 --- a/src/GeoExt/data/LayerModel.js +++ b/src/GeoExt/data/LayerModel.js @@ -56,6 +56,6 @@ Ext.define('GeoExt.data.LayerModel',{ * @return {OpenLayers.Layer} */ getLayer: function() { - return this.raw; + return this.raw || this.data; } });