One algorithm to solve this is ray-casting. See an explanation here.
And you can find code implementing this for the Google Maps JS API V3 here.
HTH.
More Related Contents:
- How to get the center of a polygon in google maps v3?
- Google Maps API Polygon with “Hole” In Center
- Google Maps Api v3 – find nearest markers
- Google Maps API: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- How to use SVG markers in Google Maps API v3
- Google Maps API OVER QUERY LIMIT per second limit
- Google Map API – Removing Markers
- Google Maps V3 – How to calculate the zoom level for a given bounds
- ERROR: Google Maps API error: MissingKeyMapError
- Google Map Infowindow not showing properly
- Google Maps API to get bus route
- Exceed 23 waypoint per request limit on Google Directions API (Business/Work level)
- Google maps Marker Label with multiple characters
- How to offset the center of a Google maps (API v3) in pixels?
- Decoding the Google Maps embedded parameters
- Adding multiple markers with infowindows (Google Maps API)
- Google Maps API – Getting Street Coordinates
- Google Maps API v3 | shows no map data
- How do I remove default markers?
- Google Maps Multiple markers with the exact same location Not working
- Polygon Drawing and Getting Coordinates with Google Map API v3 [closed]
- Google static maps with directions
- How long do the new Places API session tokens last?
- Do not change map center or zoom level when rendering directions
- Box/Rectangle Draw Selection in Google Maps
- An elegant way to find shortest and fastest route in Google Maps API v3?
- Is it possible to write custom text on Google Maps API v3?
- GoogleMaps v3 API Create only 1 marker on click
- Google Maps, open info window after click on a link
- Google map driving direction source code for their example?