Skip to content

Commit

Permalink
add proxy api to hit openmaps endpoint, integrated on the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
meghna0593 committed Dec 4, 2024
1 parent e558ca6 commit fcc9011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/UI/Map2/helpers/map-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit fcc9011

Please sign in to comment.