@im-victor-mendez
Submitted
I yet to implement hover responsive actions to all components.
@de-sipher
@im-victor-mendez
Submitted
I yet to implement hover responsive actions to all components.
@de-sipher
Posted
The website doesn't seem to be working. I entered a random IP address and it didn't do anything when I pressed submit. I can see from the console that there are some issues with promises on the website. Here's a screenshot
Marked as helpful
@kaiohnr
Submitted
I added an API to get the user's IP address, but apparently something is blocking "Failed to load resource: net::ERR_BLOCKED_BY_CLIENT".
I would also like to know how can I remove the last marker when the user searches for a new IP address? I couldn't find how to do it.
Feel free to give me your feedback!
@de-sipher
Posted
"I would also like to know how can I remove the last marker when the user searches for a new IP address? I couldn't find how to do it."
You'll find everything you need over here
You need to use the marker.remove(ReferenceToMap)
method where,
let marker = new L.Marker([0, 0]);
let map = new L.map('map', mapOptions);
You can check my code where I use marker.remove(map);
to remove the old marker before I add a new one.