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

resolved issue Include OSM link somewhere #54 #150

Merged
merged 3 commits into from
Mar 24, 2023
Merged

resolved issue Include OSM link somewhere #54 #150

merged 3 commits into from
Mar 24, 2023

Conversation

harsh5902
Copy link
Contributor

πŸ› οΈ Fixes Issue

issue resolved #54

πŸ‘¨β€πŸ’» Changes proposed

added button "open OSM" to valhalla web app to link OSM with same map extent and zoom level.

πŸ“· Screenshots

image

added button to link OSM to same map extent.
Copy link
Owner

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

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

looks good, thanks! just a few comments.

package.json Outdated Show resolved Hide resolved
src/Map/Map.jsx Outdated
@@ -42,6 +42,24 @@ const style = {
height: '100vh',
}

const button_style = {
Copy link
Owner

Choose a reason for hiding this comment

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

it's ok for now to define in JS but eventually we should move all that stuff to css files

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it could be part of the project to determine how styles are managed! CSS files on a per-component basis are surely an option but there's plenty more. But yeah, consistency is key :-)

Copy link
Owner

Choose a reason for hiding this comment

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

Maybe I should just stay out of the review for web dev stuffπŸ˜„

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, as more css could be the part I created new css file for Map component @chrstnbwnkl

@harsh5902
Copy link
Contributor Author

sure I will make changes..

@nilsnolde
Copy link
Owner

Thanks, works for me. WDYT @chrstnbwnkl?

@harsh5902
Copy link
Contributor Author

harsh5902 commented Mar 24, 2023

@nilsnolde I have made the necessary changes as you suggested

And a question GSOC related for how much week should I keep deadline of project on my proposal right now I have kept it for 10 weeks and divided the work according to it.

src/Map/Map.css Outdated
@@ -0,0 +1,23 @@
.osm-button {
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding that class here with all those custom styles is not necessary, please take a look at the UI component library we're using. Hint: take a look at the Directions/Isochrone button in the top right when the sidebar is collapsed.

@harsh5902
Copy link
Contributor Author

image
Have a look now @chrstnbwnkl

Copy link
Contributor

@chrstnbwnkl chrstnbwnkl left a comment

Choose a reason for hiding this comment

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

Please remember to remove any unused code.

@@ -0,0 +1,12 @@
#osm-button {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can go now.

Copy link
Contributor

@chrstnbwnkl chrstnbwnkl left a comment

Choose a reason for hiding this comment

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

Oh wait sorry, nevermind. A bit too quick. Looks good, thanks!

@chrstnbwnkl chrstnbwnkl merged commit 0cc557c into nilsnolde:master Mar 24, 2023
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.

Include OSM link somewhere
3 participants