Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,

i want to display map in my browser using c#.net which area name is write in textbox.
Posted
Updated 21-Jun-13 1:43am
v2

Use the below link to get the maps for your given location

https://maps.google.com/maps?q=Hyderabad,+Andhra+Pradesh,+India&hl=en&sll=17.385044,78.486671&sspn=0.506527,0.615921&oq=Hyderabad&t=h&hnear=Hyderabad,+Ranga+Reddy,+Andhra+Pradesh,+India&z=11[^]

So now prepare a Url like this with textbox value(above example Hyderabad, Andrapradesh, india is the search string).
Render that URL in the Browser control

Thanks
--RA
 
Share this answer
 
Comments
Ankur Ramanuj 22-Jun-13 4:51am    
sorry..but i don't want to display in google map's url but i need it in my application output.
Ankur Ramanuj 2-Jul-13 6:22am    
Actually i want to display map on my behalf..not on google map.
and finally i got it.. its to easy as well.

my solution is to simple..

JavaScript
var chicago = new google.maps.LatLng(22.258652//textbox1.value
                                                          ,71.192381//textbox2.value
   );
  var mapOptions = {
    zoom:6,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    center: chicago
  }
  map = new google.maps.Map(document.getElementById('map'), mapOptions);
  directionsDisplay.setMap(map);
 
Share this answer
 

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