diff --git a/app/src/UI/Map2/helpers/map-init.ts b/app/src/UI/Map2/helpers/map-init.ts index fb38940e9..3c25babd8 100644 --- a/app/src/UI/Map2/helpers/map-init.ts +++ b/app/src/UI/Map2/helpers/map-init.ts @@ -138,10 +138,10 @@ export const mapInit = (options: MapInitOptions) => { }; } - const api_local = 'http://localhost:3002'; + // const api_local = 'http://localhost:3002'; // to make bcgw layers work on mobile if (MOBILE && url.includes('openmaps.gov.bc.ca/geo/ows')) { - const proxyUrl = `${api_local}/api/proxy/openmaps?url=${encodeURIComponent(url)}`; + const proxyUrl = `${api_base}/api/proxy/openmaps?url=${encodeURIComponent(url)}`; return { url: proxyUrl };