From a6f2945099a44981eebbfe504e7d24766519e83a Mon Sep 17 00:00:00 2001 From: "marcin.pawlowski" Date: Fri, 21 Jan 2022 13:30:51 +0100 Subject: [PATCH] Fix urls parsing --- ios/Classes/SourcePropertyConverter.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Classes/SourcePropertyConverter.swift b/ios/Classes/SourcePropertyConverter.swift index 9db6cf180..4831a4b4b 100644 --- a/ios/Classes/SourcePropertyConverter.swift +++ b/ios/Classes/SourcePropertyConverter.swift @@ -46,7 +46,7 @@ class SourcePropertyConverter { class func buildVectorTileSource(identifier: String, properties: [String: Any]) -> MGLVectorTileSource? { - if let url = properties["url"] as? String, let url = URL(string: url) { + if let rawUrl = properties["url"] as? String, let url = URL(string: rawUrl) { return MGLVectorTileSource(identifier: identifier, configurationURL: url) } if let tiles = properties["tiles"] as? [String] { @@ -62,7 +62,7 @@ class SourcePropertyConverter { class func buildRasterDemSource(identifier: String, properties: [String: Any]) -> MGLRasterDEMSource? { - if let url = properties["url"] as? String, let url = URL(string: url) { + if let rawUrl = properties["url"] as? String, let url = URL(string: rawUrl) { return MGLRasterDEMSource(identifier: identifier, configurationURL: url) } if let tiles = properties["tiles"] as? [String] { @@ -123,7 +123,7 @@ class SourcePropertyConverter { } class func buildImageSource(identifier: String, properties: [String: Any]) -> MGLImageSource? { - if let url = properties["url"] as? String, let url = URL(string: url), + if let rawUrl = properties["url"] as? String, let url = URL(string: rawUrl), let coordinates = properties["coordinates"] as? [[Double]] { return MGLImageSource(