Skip to content

Commit 1974af2

Browse files
author
Pedro Gil
committed
Fix issue #88
Fix issue #88
1 parent 0f4df97 commit 1974af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-mapbox/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3119,7 +3119,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
31193119

31203120
const layer = theMap.style.layerWithIdentifier(name);
31213121

3122-
resolve(new Layer(layer));
3122+
resolve(layer ? new Layer(layer) : null);
31233123
} catch (ex) {
31243124
if (Trace.isEnabled()) {
31253125
CLog(CLogTypes.info, 'Error in mapbox.getLayer: ' + ex);

0 commit comments

Comments
 (0)