From d88bc59720a38fe4f3280b3f8e23725ea81ba0b3 Mon Sep 17 00:00:00 2001 From: orangemug Date: Thu, 12 Jul 2018 12:33:40 +0100 Subject: [PATCH] Fixed normalizeSourceURL import issue. --- src/components/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index 5de60a4..3051b46 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -35,7 +35,7 @@ import Debug from '../libs/debug' import queryUtil from '../libs/query-util' import MapboxGl from 'mapbox-gl' -import mapboxUtil from 'mapbox-gl/src/util/mapbox' +import { normalizeSourceURL } from 'mapbox-gl/src/util/mapbox' function updateRootSpec(spec, fieldName, newValues) { @@ -365,7 +365,7 @@ export default class App extends React.Component { if(!this.state.sources.hasOwnProperty(key) && val.type === "vector" && val.hasOwnProperty("url")) { let url = val.url; try { - url = mapboxUtil.normalizeSourceURL(url, MapboxGl.accessToken); + url = normalizeSourceURL(url, MapboxGl.accessToken); } catch(err) { console.warn("Failed to normalizeSourceURL: ", err); }