Look at http://qfox.nl/notes/116
var overlay = new google.maps.OverlayView();
overlay.draw = function() {};
overlay.setMap(map);
var point = overlay.getProjection().fromLatLngToDivPixel(latLng);
Ugly indeed. Much easier in v2 – another flaw of google api v3!
More Related Contents:
- Google Maps JS API v3 – Simple Multiple Marker Example
- Verify if a point is Land or Water in Google Maps
- Using Address Instead Of Longitude And Latitude With Google Maps API
- How to Display Multiple Google Maps per page with API V3
- Google Map API v3 — set bounds and center
- Google Maps API autocomplete 2nd address fields on same page
- Google Maps API V3 : How show the direction from a point A to point B (Blue line)?
- Do I need to hide API key when using google maps js API? If so, how?
- Have just one InfoWindow open in Google Maps API v3
- Midpoint of route in google maps
- Google Maps – How to get the distance between two point in metre?
- Load google maps v3 dynamically with ajax
- How to get the formatted address from a dragged marker in Google Version Maps
- How to draw a polygon around a polyline in JavaScript?
- Display world map with no repeats
- Request main road / curbside StreetView panoramas instead of back alleys from API
- Open infoWindows from an external link outside of the google map
- polyline snap to road using google maps api v3
- XMLHttpRequest cannot load No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:3000’ Google maps
- Animating Multiple Markers
- Google Maps API v3: How do I dynamically change the marker icon?
- Google map custom marker with css rounded corner
- How to detect if a point is in a Circle?
- remove route with google map
- Check if a latitude and longitude is within a circle google maps
- Highlight polygon and tint rest of map using Google Maps [duplicate]
- Using Longitude/Latitude as Waypoint
- Google Maps API map doesn’t appear [duplicate]
- How to connect two points in Google map..?
- Google Maps API Multiple Markers with Infowindows