Skip to content

Commit

Permalink
Add route and key points
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiyaSX committed Oct 10, 2024
1 parent ee91211 commit 8452abd
Show file tree
Hide file tree
Showing 4 changed files with 1,111 additions and 11 deletions.
25 changes: 22 additions & 3 deletions src/app/student/map/_components/MapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ import {
backgroundLayerStyle,
boothLayerStyle,
geoJsonNymblePlan2Data,
nymbleSecondFloorStructure
geoJsonNymblePlan2RoutesData,
nymblePlan2LineLayerStyle,
nymblePlan2PointLayerStyle,
nymblePlan2RouteLayerStyle
} from "../lib/config"
import { BoothMarker } from "./BoothMarker"

Expand Down Expand Up @@ -180,11 +183,27 @@ export function MapComponent({
</Source> */}

<Source
id="nymble-plan2"
id="nymble-plan2-style"
type="geojson"
promoteId={"id"}
data={geoJsonNymblePlan2Data}>
<Layer {...nymbleSecondFloorStructure}></Layer>
<Layer {...nymblePlan2LineLayerStyle}></Layer>
</Source>

<Source
id="nymble-plan2-routes"
type="geojson"
promoteId={"id"}
data={geoJsonNymblePlan2RoutesData}>
<Layer {...nymblePlan2RouteLayerStyle}></Layer>
</Source>

<Source
id="nymble-plan2-points"
type="geojson"
promoteId={"id"}
data={geoJsonNymblePlan2Data}>
<Layer {...nymblePlan2PointLayerStyle}></Layer>
</Source>

{markers}
Expand Down
Loading

0 comments on commit 8452abd

Please sign in to comment.