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.
isWithinCoordinates is an empty function, as such it always returns a falsy value, so the if statement condition is never true.
isWithinCoordinates
Thanks for catching that
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.