Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

ip tracker HTML,CSS,JS

@azzykesuma

Desktop design screenshot for the IP Address Tracker coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


it successfully tracked my ISP, but somehow the location is way too off

Community feedback

@oussamasine07

Posted

hello sir, thank you for the solution, personally I found it very helpful, but a question please can explain exactly this block of code:

updateMap = (updateMark = [100,100]) => { mymap.setView(updateMark,13) L.marker(updateMark).addTo(mymap) }

I read the docs but they're not helpful enough

0

@azzykesuma

Posted

@oussamasine07 that is referencing to the starting point of the map, which is 100 longitude and lattidude. the number is actually random and you can just point it anywhere. when the dom loads, the map will be focused on that location, until the user searched the ip. the function gain the new longitude and latitude number based on the ip, and the map will be updated to a new location

0

@oussamasine07

Posted

@azzykesuma ok thank you so much. understood now

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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