How can i make custom map for showing user current location in iphone? - iphone

i want to show my current location on custom map.The custom map is of my locality....so,please help me how can i use custom map in place of google map???

The main problem with offline maps is not the "map" but all the stuff you need to build to georeference your map.
Think only at a map zoom.
There are many good open source libraries/SDK to manage offline maps.
--EDIT--
It seems that the free code I found was removed.
As soon as I will find a new available one I will update this comment

Related

creating custom leaflet marker on map with idxbroker code

I created a real estate website that uses a company called idxbroker to handle the data from the mls (multiple listing service). I want to have a custom marker to populate on the map for property listings that I have personally so that they stand out when someone searches for properties. Idxbroker does this, however, the marker they provide for my personal listings has a tiny star inside of the same marker used for all listings and you wouldn't realize it unless you were looking for it. I know how to create a custom marker based on leaflet doc's, but not sure how to implement this since idxbroker hosts all this data from their server on my custom subdomain. Is there a way to inject javascript into their code so that my listings have a custom marker?general marker & marker for my listings
Are you looking to add a custom marker on a results page or on the details pages?
It might be easier to just hide the IDX map and write your own in it's place with your custom marker.
Can you provide a map code sample or a link to the page you are trying to customize?

Windows Phone 7 - Bing Maps MVVM Pushpin initialization

Does anyone have a good guideline on how to initialize a pushpin on the Bing Maps control?
My current scenario works, but is not 100% correct... let me explain the details:
When I open the page with the Bing Maps control on it, I want the user to be able to push a small button that will show his current location.
To show the current location, I'm using a Pushpin. I'm already adding the Pushpin on the control in the XAML file like this:
<map:Pushpin> x:Name="currentLocation" Location="{Binding CurrentLocation}" Content="Me" ManipulationStarted="CurrentLocationPin_ManipulationStarted" </map:Pushpin>
Now with this scenario there a some problems!
One, the pushpin is always visible! So how do I go about this? ( I know I can bind the Visibility also to a property and use a bool to visibility converter, but is this the best way to do this? )
Secondly, now I don't initialize the Location in the viewmodel... but for semantic reasons I would love to initialize the default value to Geocoordinate.Unkown ( that way I can use this to do checks when the user tries to do some manipulation before a currentlocation is set ). But when I initialize the pushpin on startup I get following error: "UIElement.Arrange(finalRect) cannot be called with Infinite or NaN values in finalRect.". So my question again :) what is a good guideline to setting up a currentlocation pushpin? ( but do mind that the users has to push a small application bar button before the currentlocation is set )
The initialization problem is due to the visibility of the Pushpin. If the initial visibility of the Pushpin is Collapsed, then it won't take part in the arrange pass, so you won't get the error.
If you're using a view model to back this view, then I don't see a problem with exposing a property from the view model that determines whether the Pushpin should be visibile or not. Yes you could use a boolean to visibility converter, but you could save some processing by actually exposing a Visibility property (which is the approach I've used).
If you're using a command to initiate showing the Pushpin from the button push (the Silverlight Windows Phone Toolkit has a behavior to enable hooking up application bar buttons to commands).

Searching annotation in mapkit

im trying to add a search bar to the current mapkit im doing.
The search bar will be able to search for the different location name (annotations on the map) in a table view.
When users click on a certain cell it will direct them to the specific annotation on the map.
Any ideas on how to do it? I googled for answers, but most of the tutorial teach us on searching through sqlite and so on.
#funatsg i suggest u to take the data from a a particular index from you UITableView search result and take that data to your mapView and then start searching for that paticular location in a map (eg:-by giving that string to google map) and you will get the particular location.
I would like to suggest a link to you which is some how similar to your condition.....see how the map is searching the data of the text from UITextField..try this link
Hope it will help u and solve your problem!!!

Show annotation in custom views

First off - I'm not using MapKit. I'm using my own controls for something entirely different. But the annotation view is something I'd like to mimmic. I've seen other applications with similar views to indicate state or actions on other controls. However, scanning through the class library I can't find a view already in the SDK. Do I have to create my own custom view that mimics this look and behavior or does the iPhone provide a standard way of showing these annotations?
You have to create your own (or find an open source implementation). The annotation views are actually drawn by the map view so they don't work outside of a map.
Well I couldn't find an open source solution so I built my own. To save anyone else the trouble, the source can be found at
http://github.com/appsinyourpants/Pants-Framework/tree/master/Classes/Views/

How do i get touch event on WebView

Hope you all are fine and also in one of your best moods!!
I have one problem in Map based application. kindly go through it and post your suggestion.
Thing at Glance:
I need to integrate map in my application.
application shows map based on passing parameter as state and city.
i am using yahoo map image for that.
i.e.
pass parameter as following:
state : CA
city : Loss Angelous.
it shows image of map perfectly that i load on webview.
now issue is here:
i need to put button at selected city.. i don't know how do i put.
because on clicking button i need to load another view that contains Details of that city.
I don't know how do i do this.
Kindly give your suggestion.
Thank you.
Arun Thakkar.
Using the iPhone SDK 3.0 you can use the MKMapKit framework to embed a map in your application, and you can add custom annotations. Here's the MKMapView documentation.