CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    2

    Using Google Maps from VB 2008

    Afternoon Everyone,

    I hope that someone out there might be able to help me. I am creating an application that will read from a CSV file, and display that information in a DataGridView. This first part of the operation works as does the conversion from Degrees/Minutes/Seconds to Degrees decimal. Once converted the datagrid view shows:

    UHF CH1 Rep -24.055 133.9783333

    There are a total of 704 entries like this.

    What I am having problems with is showing this position on a Google Map. My project is using the WebBrowser Control in VB 2008, but when I use the URL I get the entire google page.

    URL:http://maps.google.com.au/maps?f=q&s...55,133.9783333

    The size of the WebBrowser control is 373, 431.

    What I would like to be able to do is have the location centred in the WebBrowser control

    Any help that any one can give me would be appreciated

    Thanks in advance

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Using Google Maps from VB 2008

    Welcome to the forums!

    The best way would be to use the Google Maps API, provided by Google. you could find more info on it here :

    http://code.google.com/apis/maps/doc...g_the_Maps_API

    If you have a registered Google account.

    What I once did was to create a normal Webpage to host the map, and from my program's WebBrowser, I just navigated to that file ( as shown in the attachment )

    You may need a little JavaScript help to set up all the addresses properly though, but it shows what you want, and how you want it then

    With the attached file, just unzip it, copy the Map.html file to the C:\ then run your project, and voila!

    I hope my post was helpful
    Last edited by HanneSThEGreaT; June 14th, 2010 at 05:42 AM.

  3. #3
    Join Date
    Jul 2009
    Posts
    2

    Smile Re: Using Google Maps from VB 2008

    Thanks HanneSThEGreaT,

    Will check out the API and see if that helps. Have saved your zip file and will have a llok at that as well

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured