-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
vercasson
commented
Aug 14, 2023
•
edited
Loading
edited
- This change is documented in CHANGELOG.md
@@ -73,7 +73,7 @@ const OverlayMarker: FunctionComponent<OverlayMarkerProps> = ({ | |||
fill={fill} | |||
fill-opacity={fillOpacity} | |||
stroke={stroke} | |||
stroke-width={strokeWidth / mapZoomFactor} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope
} else { | ||
return { | ||
}, | ||
// { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These too.