Question

In My application i am using MKMapview to display the googleMap,but it is not displaying the search field in the Map. I have downloaded the Maps application from the Appstore in my real device and which is disaplying the seach field in the map.

can any body have any solution for displaying the search field in the Existing Map, as i want to search the text into the search field and want to display its content to the Map?

Pls provide any solution, which would be appreaciated.

Thanks,

Mishal Shah

Was it helpful?

Solution

The MKMapView control does not include a search control - it simpy displays a map. You can center the map and contro lthe zoom but that is about all.

You will have to implement the search field yourself (use a UISearchBar) and then use google's web services to find the logitude and latitude of your search term.

This isn't trivial but it is not difficult either.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top