I'm trying to make a game in which you have to guess the place where a picture is taken. By dragging a red circle, as can be seen in the picture I added, in the correct position onto the map. The yellow dot is the respective position. The yellow dot is not visible until you check if you've placed the red circle in the correct position.
The idea is pretty nice, however making the code seems a bit hard for me. I'm trying to make everything work with Java Script. The problem I'm facing with, is that I don't know how to write a Java Script code, that checks if the red circle is over the yellow dot or touches it.
So my question is: Is there somebody out there who knows a code that helps me to solve this problem?