builtbikes


I have a very simple page that displays a map and has a search field on it using:

function FindLoc()
{
map.FindLocation(document.getElementById('txtWhere').value);
}

Is there any way to capture the results from the search Are they returned in Lat Long I would like to some how get the lat and long from the search results.

Thanks!




Re: Lat long from FindLoc()

Derek Chan


Why are you using the findlocation method The purpose of this method is to center the map on a particular location. That being said, you could just use the find method to get the location, and then setcenterandzoom method to zoom into the latlongs of your results





Re: Lat long from FindLoc()

builtbikes

What I am trying to do is put in a address to the search box, have VE center ans zoom to the results and some how capture the lat and long VE used to center the map.




Re: Lat long from FindLoc()

Derek Chan

Just do a find on that address, get the latlongs from your result and use the setcenter on those latlongs