Making a web map with leaflet plugin. Why cant I get a text box to display when certain coordinates are clicked?

Hey, I’m trying to make a web map, and I want a box to pop up when a certain spot on the map is clicked. I think my code is fine & when i click the location, i recieve a ‘Click event fired!’ in the console log. But the box is never displayed.

Github link

Any help would be great. I just cant figure out where I went wrong.

1 Like

isWithinCoordinates is an empty function, as such it always returns a falsy value, so the if statement condition is never true.

1 Like

Thanks for catching that

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.