From 1974af2e3e6df59a64ce3668daee12d769af866b Mon Sep 17 00:00:00 2001 From: Pedro Gil Date: Mon, 8 Aug 2022 15:58:50 +0200 Subject: [PATCH] Fix issue #88 Fix issue #88 --- src/ui-mapbox/index.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui-mapbox/index.ios.ts b/src/ui-mapbox/index.ios.ts index 2fb05b0..f22d7b9 100755 --- a/src/ui-mapbox/index.ios.ts +++ b/src/ui-mapbox/index.ios.ts @@ -3119,7 +3119,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi { const layer = theMap.style.layerWithIdentifier(name); - resolve(new Layer(layer)); + resolve(layer ? new Layer(layer) : null); } catch (ex) { if (Trace.isEnabled()) { CLog(CLogTypes.info, 'Error in mapbox.getLayer: ' + ex);