Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
110
rated 0 times [  113] [ 3]  / answers: 1 / hits: 44891  / 15 Years ago, thu, october 8, 2009, 12:00:00

I know that method exists and is documented, but I don't know how to get an MapCanvasProjection object.


More From » google-maps

 Answers
42

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!


[#98549] Friday, October 2, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aubreeg

Total Points: 437
Total Questions: 102
Total Answers: 102

Location: Colombia
Member since Mon, May 2, 2022
2 Years ago
aubreeg questions
Sun, Dec 20, 20, 00:00, 3 Years ago
Sat, Aug 22, 20, 00:00, 4 Years ago
Fri, May 1, 20, 00:00, 4 Years ago
Wed, Feb 26, 20, 00:00, 4 Years ago
;