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. :)

  1. load geometry library google maps api.
  2. use containslocation utility method determine if user's current location within geofenced area.
  3. 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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -