Design comparison
SolutionDesign
Community feedback
- @Avitohol1Posted over 1 year ago
Hi and congrats for completing the challenge! Here are some things I hope will be helpful for you:
- In the HTML I recommend you use a
<button type="submit"> > </button>
in place of the submit input you currently have. The button is more explicit. - There is no responsiveness to your design - you can use media queries for that.
- On line 11 there is a typo for the second argument of fetch. But you can actually remove the argument completely as the default method for fetch is "GET" - like this:
const response = await fetch(url)
- In the app.js when you call the updateMap() function you are creating a new map on every call. So every time when you click the submit button a new map is added on top of the old one and this is ineffective and also you can't drag the new map. A way to fix this would be to initialize the map once in the beginning of your code and then use the map.panTo() method
Marked as helpful0 - In the HTML I recommend you use a
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord