Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRC-1631 - Directions Beta, add step by step support to the multi-floor demo #374

Merged
merged 18 commits into from
Aug 18, 2023

Conversation

vercasson
Copy link
Contributor

@vercasson vercasson commented Aug 14, 2023

  • This change is documented in CHANGELOG.md

@vercasson vercasson changed the title [WIP] MRC-1631 - Directions Beta, step by step improvements MRC-1631 - Directions Beta, add step by step support to the multi-floor demo Aug 18, 2023
demo/directions-overview-multifloor/index.html Outdated Show resolved Hide resolved
demo/directions-overview-multifloor/index.html Outdated Show resolved Hide resolved
@@ -73,7 +73,7 @@ const OverlayMarker: FunctionComponent<OverlayMarkerProps> = ({
fill={fill}
fill-opacity={fillOpacity}
stroke={stroke}
stroke-width={strokeWidth / mapZoomFactor}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why doesn't this need the mapZoomFactor anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

markers don't need this

floorID: map_id,
steps: [],
};
function stepsToPolygonPoints(steps, mapID) {
Copy link
Contributor

@tarakreft tarakreft Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why all these functions (stepsToPolygonPoints, generateRouteOverlays, etc) are defined in the demo. I would expect there to be functions that a user can call in the webSdk and then the demo shows users how to leverage the functions to build their overlays.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will most likely be checked in at one point. Not ready for that yet.

strokeWidth: 8,
strokeLineJoin: "round",
strokeLineCap: "round",
// markerStart: "url(#arrow)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, are these comments needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

} else {
return {
},
// {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These too.

@vercasson vercasson merged commit 548eac5 into main Aug 18, 2023
@vercasson vercasson deleted the mrc-1631-directions-step-by-step branch August 18, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants