Add Radar Overlay on the MapView

In this post, I will describe adding the overlay of Radar on the MapView (MKMapView)

Here is the sample screen-shot of the output of this post.

Add overlay on MapView Sugartin

1. Open your project & Import CoreLocation.framework & MapKit.framework

2. Download the sample code & import four files into your project. MapOverlay.h, MapOverlay.m, MapOverlayView.h, MapOverlayView.m.

3. Import following file into your viewController.h ( ViewController having the map )

4. Now, Put following line of code to add the overlay on the map.

5. Now, over-ride following method for adding OverlayView on the mapview. Make sure, you have a MKMapView on your View & Delegate is connected properly.

6. Run the project & test the output on simulator.

Source of Radar Image used from following location.

http://radar.weather.gov/ridge/Conus/RadarImg/latest_radaronly.gif

Let me know your comments & feedback on this.

Did you like this? Share it:

About Sagar R. Kothari

Hey ! Hi there ! I am Sagar R. Kothari. I am graduated from Gujarat University. I am pursuing M.C.A from IGNOU University. I am in iOS App/Game Development since last 3 years. I am always hunting for better knowledge in iOS. I am looking forward to be a good app & game developer. I keep on sharing my knowledge @ http://sugartin.info as soon as I get spare time for it. I would love to hear your personal feedback about this blog.

Leave a Reply

Your email address will not be published. Required fields are marked *


eight + = 10

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">