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..)
Related
I have some questions about leaflet's polyline and they are as follows
Is there a way when instantiating the polyline (L.polyline) to dictate that it should not show by default on the map? I know that I can use .addTo([map]) and .remove() but is there a way to specify as part of the options?
What is the best practice to hide/show polylines that are used to indicate a path between markers (L.marker)? I know that I can add the markers to a layer group (L.layerGroup). I know that when creating the polyline, I can use the same lat/lng for each of the markers indicating the path. I know that I can show/hide each one of those individually (using L.Control.Layers and passing in the layer groups in as overlay maps and using that control to show/hide the markers and then, again, using the addTo() and .remove() for the polylines) but what I'm hoping to get help with is to make it show that the polylines show/hide when the layer group is visible/not visible and also show/hide them using an external control. For the former case, I've tried using feature groups (L.featureGroup) but I could not get it to work. For that latter case am I limited to .addTo() and .remove()?
thnx,
Christoph
I will be trying to show a set of options using the layerGroup functionality to filter out the markers. I need to show a popup when an option is selected from a layer which will prompt the user to enter a number based on which i will be showing the markers. Is there a possible way?
In the above sketch, there' s a sample filter at the top right which i intend to show using the layers but the thing is on selecting the 'Location' option i have to show a popup that will prompt the user to enter a location number and on that basis the markers should be placed on the map.
I guess there would be multiple ways of achieving this, depending on what behaviour exactly you want to get.
E.g. you could use a "dummy" layer (with name "Location" probably?), that you can add in the Layers Control (I guess that is the "sample filter at the top"?). Then listen for this dummy layer for being added to the map, and launch your modal ("popup") at this time. Then when the user enters the necessary information, you can programmatically add the corresponding markers to the map.
If you need further help, please add more details on what behaviour you try to get, or start your implementation and post new questions, so that you already have a start of what you are trying to achieve and people can elaborate on it.
i have a Map view witch contain several object (Annotation) i would like when i click in one annotation it show to me the zoom ( maximum) of the object (annotation) in an other view
What I can get is that you want an image to be displayed when you select an annotation in different view which is referred as callout.
The following link might give you what you need, you might still need to customize it, you can also download sample code from there.
http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/
I have created an iPhone app which loads the map using the MKMapkit. When clicking on the map, it shows MKAnnotation with title and subtitle strings.
Now I want to know how I can show the annotation with multiple lines of text. Please show me how to do it. Thanks for your time and help.
Check out the MapCallOuts demo from Apple.
You will need to sublass the annotation view and make your own callout see this example How to add more details in MKAnnotation in iOS this may also help source provided https://developer.apple.com/library/ios/#samplecode/WeatherMap/index.html
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.