Create custom map with annotations in Swift - swift

Is there a way with Swift to realise something similar like this http://www.dayzdb.com/map Can I load an UIImage, that I can pinch and zoom and place annotation or images on specific locations. Or is there a way with the MapKit?
Thanks in advance

Related

Custom Map View

Here is the scenario...
I have a image of a map in jpeg format... I want to add it to my iPhone application and mark the coordinates in certain places (just like annotation in map kit ) and also when i move from one place to another place the current location should change and the new location should be marked in the image.
Is that possible ? How to achieve this instead of using the mkmapview ?
I found this tutorial how to add custom google maps, maybe you could use your image (.jpeg) as a overlay.
stiern.com/tutorials/adding-custom-google-maps-to-your-website
Sounds like you want to use an MKOverlay.
Essentially it boils down to looking at the TileMap sample code from WWDC 2010. It'll still load the Google Map in the background and your map over the top

Show Multiple location on MapView - NEWBIE

I would like to add more locations on MapView something similar to this image. In this image there are only 2 pin points, but i need to have more than 10 locations to add in the map. Is this possible ? and is there any tutorial/sample code where i could start on this ?
You need to implement the annotation protocol, which simply requires you to include a couple of fields in an object so the map view knows what to annotate the 'pin' with.
You can then add multiple pins to the map view programatically.
I found this blog post useful when I was doing this.
http://mayurbirari.wordpress.com/2011/02/07/how-to-access-mkmapkit-in-iphone/
It's called MKPinAnnotationView and you can have as many as you want on map.
You need to implement protocol for it and it has pin as default image property.

Fit Images in MKMapview

I am using MKMapView , i want in my map the background image will display instead of map
i have some local images and i want that images will be shown instead of original map on
MKMapView
any help please?
You should be using CATiledLayer and a UIScrollView if you want to roll your own solution and need something pretty simple, or use https://github.com/route-me/route-me a native open source map library that enables you to use custom map tiles.

drawing routes view in iphone

how can i draw routes on a map. This is easily solved though by placing a custom UIView over the map that acts as the map delegate but didn't how can i do this, and how to take a series of CLLocation coordinates and plot them on the map, regardless of the location the user pans to or how far they have zoomed in.Give some hint to solve this or give some sample code to do this
thanks in advance
In ios4 apple has made some nice additions for this. Look at mkoverlay protocol and mkoverlayview.
You'll find an example here
http://spitzkoff.com/craig/?p=136

iPhone - Add annotation to My own Map

I have an image plan of stores of exhibitors hall. So I need to add annotation to each store in the plan, which is a jpg file.
iPhone MapKit looks like supports only world map. Are there any way I can add my own picture and add annotation to it like google map annotation.
Thanks
I don't think you can do that.
What you can do is using a UIScrollView to scroll and zoom in/out your jpg plan and use subviews to simulate annotations. That's what I would do.
MapKit does not support custom tiles, so your only option is to implement your own map using UIScrollView (and potentially CATiledLayer if the map is large / has many zoom levels).