Thank you but not exactly what I was looking, I think.
Let me give you a practical example.
I created a map in my area (Lazio, Italy) in georeferenced TIFF format.
In fact, when I load the map, this fits perfectly with the underlying default map OpenStreetMap.
If you move the mouse over the map and I position for example the Colosseum in Rome, by the routine
Private Sub map0_MouseMove (ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)
I get the following values
Latitude: 5116036.38692499 (Lat)
Longitude: 1390643.13778291 (Lon)
while in the map at the top right shows the following values
Lat: 41.890
Lon: 12.492.
How do I get these two values?
How to intercept them to carry in two variables?
I hope I was clear.
Thank you.
Nicolò
Let me give you a practical example.
I created a map in my area (Lazio, Italy) in georeferenced TIFF format.
In fact, when I load the map, this fits perfectly with the underlying default map OpenStreetMap.
If you move the mouse over the map and I position for example the Colosseum in Rome, by the routine
Private Sub map0_MouseMove (ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)
Xx As Double Dim: Dim Yy As Double
Map0.PixelToProj x, y, Xx, Yy
Lat = Yy
Lon = Xx
End SubI get the following values
Latitude: 5116036.38692499 (Lat)
Longitude: 1390643.13778291 (Lon)
while in the map at the top right shows the following values
Lat: 41.890
Lon: 12.492.
How do I get these two values?
How to intercept them to carry in two variables?
I hope I was clear.
Thank you.
Nicolò