User's current location marker only clickable (or visible) if it is within a defined rectangle
===

Another absolute beginner here...I have built a page that geolocates the user and places a marker on a map.  That works fine.  I have also created a rectangle (primarily for use with ST_INTERSECTS and a Fusion Table - but that's not part of this problem).  That also works fine.  What I am trying to achieve next is to make the user's position marker either only appear or only to be clickable if it is within the rectangle (either will do) - i.e. if the user's is within the area defined by the rectangle.  Is there a simple way to do this?  Thanks for any suggestions.