Skip to content

Commit

Permalink
Updating mapbox style url
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob6838 committed Sep 26, 2024
1 parent e71e15a commit 8250a37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Map, { Layer, MapRef, Marker, Popup, Source, SymbolLayer } from "react-ma

import { Container, Col } from "reactstrap";
import getConfig from "next/config";
import mbStyle from "../../intersectionMapStyle.json";

const { publicRuntimeConfig } = getConfig();

Expand Down Expand Up @@ -146,7 +147,7 @@ const IntersectionMap = (props: Props) => {
<Map
{...viewState}
ref={myRef}
mapStyle={publicRuntimeConfig.MAPBOX_STYLE_URL!}
mapStyle={mbStyle as mapboxgl.Style}
mapboxAccessToken={MAPBOX_API_TOKEN}
attributionControl={true}
customAttribution={['<a href="https://www.cotrip.com/" target="_blank">© CDOT</a>']}
Expand Down

0 comments on commit 8250a37

Please sign in to comment.