Click here to Skip to main content
15,888,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello guys

I want to do a windows application where i enter the latitude longitude that r in textBoxes . I m having a webbrouser tool to display it on my application . I saw in internet they all give suggestions on web application but i need to implement in on windows application using C# . So can any body suggest me some code or link.


Thanks with advance
Arun
Posted

I believe you may find some examples here here[^].
 
Share this answer
 
You can have a look at it "Google Code Playground"[^]

As you are using google api, that may be the best option for you.

You can find it from your lefthand panel "Pick an API".

You can find some other api(s) too (if required).

Sorry it is not for Windows application.
 
Share this answer
 
v3
Comments
arindamrudra 11-Aug-11 5:57am    
It is for web application.
Add two textboxes and a button to your form to which the webbrowser will navigate. On button click event, do this:
C#
private void button1_Click(object sender, EventArgs e)
{
    webBrowser1.Navigate("http://maps.googleapis.com/maps/api/staticmap?center=" + textBox1.Text + "," + textBox2.Text+"&zoom=14&size=400x400&sensor=false");
}

Eg. In textbox1 type 51, in textbox2 type 0 (i.e zero), and then press the button to navigate to that location. The example will show London map. The zoom level in the map can also be changed according to your choice.

The above example will show static maps, but I hope you got what you wanted. :)
 
Share this answer
 
v2
Comments
arunrv 11-Aug-11 7:24am    
ya its working but it s showing only roads . it s not showing any places label.....
Praveen Kullu 11-Aug-11 13:13pm    
I had already mentioned this is a static maps API. There are other APIs available in Google website http://code.google.com/apis/maps/index.html

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900