Skip to content

Commit

Permalink
[Enhancement] transform url protocol
Browse files Browse the repository at this point in the history
Signed-off-by: Sahit Tuntas Sadono <[email protected]>
  • Loading branch information
sahitono committed Oct 14, 2024
1 parent a4ba381 commit 54e67d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/src/map-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,9 @@ export default function MapContainerFactory(
mapboxAccessToken: currentStyle?.accessToken || mapboxApiAccessToken,
baseApiUrl: mapboxApiUrl,
mapLib: getApplicationConfig().getMapLib(),
transformRequest: this.props.transformRequest || transformRequest
transformRequest:
this.props.transformRequest ||
transformRequest(currentStyle?.accessToken || mapboxApiAccessToken)
};

const hasGeocoderLayer = Boolean(layers.find(l => l.id === GEOCODER_LAYER_ID));
Expand Down

0 comments on commit 54e67d1

Please sign in to comment.