diff --git a/src/components/App.jsx b/src/components/App.jsx index b9935ff..c76bf70 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -203,7 +203,12 @@ export default class App extends React.Component { }; if(!this.state.sources.hasOwnProperty(key) && val.type === "vector") { - const url = mapboxUtil.normalizeSourceURL(val.url, MapboxGl.accessToken); + let url = val.url; + try { + url = mapboxUtil.normalizeSourceURL(url, MapboxGl.accessToken); + } catch(err) { + console.warn("Failed to normalizeSourceURL: ", err); + } fetch(url) .then((response) => {