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
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.
Related
I need to add a search bar to my project, which I call the server passing as parameters words entered into the search bar.
All the examples I have found look on a TableView that contains data on which search is made but this is not what I want.
I thought of doing with a TextField but would like to know first if I could do with a SearchBar.
ps: sorry for my english ;)
Here If you get all the data from the server using Web Services then here no meaning to use searchbar. you can do same thing with the textField also.
But if if you want it to look as search bar then you can use the photoshop designed UI. and validate text filed as search-bar.
I want to allow the user to specify the location of something by dragging a marker onto the map. And I also want to let them enter some information about that spot.
The problem is that this makes a very complex form. Can this be done in one step? Or do I have to make them choose location first, and then in a second form take the form-field input?
How would you guys go about doing this? Are there any good tutorials for this sort of thing out there?
Thanks,
Alex
What do you mean in one step?I implemented this by adding a floating form in the side of a map and adding two hidden(or not?) fields that populated with the coords of the draggable marker.I really don't see any other way except maybe if you embed the form in the info window of the draggable marker
Cheers
For business use Microsoft charge extra for use of the Bing Maps birds eye angled view, so my client has ask that I disable this option. In verion 6.3 of the control this was easy, there is a map option that can be used to do this: enter link description here
However, I can't find how to do this using the API with version 7 of the control. The current menu has Birds eye as an option with check boxes show labels and show angled view. Ideally I'd like to disable the option from the menu so that users are only able to view road and aerial views. So it looks like I have two options available:-
1) Hide the show angled view check box somehow with css. The issue here is that I can't get to the HTML content using the IE developer toolbar of firebug as it only displays when selected.
2) Attach to the map maptypechanged event and if birds eye map selected set it back to the map type it used to be.
Both of the above are far from ideal. Does anyone have a suggestion for the best way of doing this?
Sample code:
map = new Microsoft.Maps.Map(document.getElementById('myMap'),
{
credentials: 'Your Bing Maps Key',
disableBirdseye:true
});
here are some working examples from the iSDK:
http://www.bingmapsportal.com/isdk/ajaxv7#CreateMapWithMapOptions14
API Reference:
And here is the MSDN:
http://msdn.microsoft.com/en-us/library/gg427603.aspx
disableBirdseye
boolean
A boolean indicating whether to disable the bird’s eye map type. The default value is false. If this property is set to true, bird’s eye will be removed from the map navigation control and the birdseyeMapTypeId is disabled. Additionally, the auto map type will only display road or aerial.
This property can only be set when using the Map constructor.
You're correct in stating that there is no way currently using the v7 API to disable individual map styles. A possible Option #3 which is less hackish, but requires a bit more work, is to set the showMapTypeSelector property of the MapOptions to false, which would have the effect of hiding the entire map style selection dropdown. Then create your own custom navigation menu that only includes links to those styles you want to allow the user to choose.
I need to know that what type of VIEW is used in the search bar of Create Message Screen. The bar searches , adds tabs as per the contacts selected and and also gives the option of selecting contacts form contact list througha button.
I am not able to understand whether it is a UITextView ot a UIView with variable size of UITextView.
Can Anyone please help me out in this regard.
Thsnks in advance!!
Since no one has yet answered my problem, and I have found the solution so will answer my own problem.
Yes, the search bar used in the native application is a UIScrollview with variable sized UITextView that converts the selected name into Number.
Thanks
I know map annotation and by clicking on that annotation pin I get the information about that particular place but I want to display all that information without that annotation pin so how it is possible Actually I have searchbar on the top and I will give city name and I get the Detail information on that Square box in place of Annotation.
You should read the CLLocationManager reference
You can get the user position, then you can do what you want (use reverse geocoding, show in custom map or what you want..)