The fromPointToLatLng and fromLatLngToPoint in Projection translate points in the 256x256 coordinate system and real-world coordinates.
The entire Google map has 256x256 pixels when you are at zoom level 0. Try to scale and display the point that you get when you click on the map:
google.maps.event.addListener(map, 'click', function(event) { var proj = map.getProjection(); console.log('latLng: ' + event.latLng); console.log('Point: ' + proj.fromLatLngToPoint(event.latLng)); });
I think you only need to know / use this if you want to calculate the zoom level or do something similar, where you need to know the relationship between real-world coordinates and screen pixels.
You are asking about adding a "node" to the map. If you are thinking about what documentation calls "markers", see the section on markers .
source share