Monday, June 02, 2008 7:01 PM
Is there any way with Virtual Earth to find a location using its longitude and latitude?
What I reeally want is to know if you can turn on Latitude and Longitude like horizontal and vertical rulers in a paint program or so, on the map itself?
Tuesday, June 03, 2008 2:42 PMSo you want to display the lat/lon of the mouse cursor? When you move the mouse the lat/lon would update...maybe display it in a text box?
Tuesday, June 03, 2008 6:02 PM
The VEMap object has an "onmousemove" event that fires whenever the cursor is moved while over the map. When the event fires, the function which you have attached to that event will be called and a MapEvent object will be provided as a parameter. The MapEvent object has mapX and mapY properties which refer to the postion (in pixels) of the cursor with regard to the map. These pixel values can be converted to a latitude and longitude by using mapX and mapY to create a VEPixel object and then calling the PixelToLatLong() method of the VEMap object with the VEPixel object as a parameter. This will return a VELatLong object which contains the information you are looking for.
If this doesn't help, I could write up a code sample.
Friday, June 06, 2008 2:08 AM
I just wanted to run a Visual Basic application and log on to the internet and get a map using a latitude and longitude and either using is offline or online. Is there an easy way to do this and can you show the code in Visual Baisc Express 2008
Monday, February 23, 2009 9:39 AMI am also interested in using VEMap in my Visual Basic application. I would also be interested in seeing some code for this.
Visual Studio VB.Net 2005
Monday, February 23, 2009 1:30 PMModeratorTo answer the original poster's question, try this:
For the last two posters - I think there might be some confusion as to exactly what you are trying to do. "Virtual Earth" is a name used to describe several different technologies, but they all require an internet connection in some form or other, so you won't be able to develop an off-line solution using Virtual Earth.
Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Moderator Sunday, November 29, 2009 6:45 PM
Monday, November 30, 2009 12:56 PMModeratorThis is a Bing Maps forum. Try the following forum for Google related questions: http://googlemapsforum.com/
Windows Live Developer MVP - http://rbrundritt.spaces.live.com