My goal is to let user select a point in the map then store the coordinate.
I am already able to let user select a point. And I am able to get pixel Y/X based on the center of image.
Without knowing the scale (meters/px) I can't determine point GPS coordinate. For my test, I use this formula
BingMaps.GetMapV2("Road",14,49.88125 ,2.31831,{mapSize:"1366,768",pushpinIconStyle:121,pushpinLatitude: 49.881121,pushpinLongitude: 2.284551})
Real distance is 2418.92 meters.
Number of pixel is -393 pixel.
Base on the documentation zoom 14, raw pixel 9.55, converted latitude 8.853675285
393 * 8.853 =3.479m
So there is a problem.