php - How can I have Google Maps display a dialog if my location is outside of a polygon? -
if have area defined (polygon, image boundary, etc.) want able alert user if current position outside of geographic location / geofenced area in google maps. able determine location of user through html5 geolocation fine, need know how display alert if user using webpage outside of designated area. first time poster, please go easy on me. :)
- load geometry library google maps api.
- use
containslocation
utility method determine if user's current location within geofenced area. - display alert user.
for alert itself, have several options. easiest way use standard javascript alert
call. use maps api infowindow
or 3rd party lightbox overlay.
Comments
Post a Comment