Skip to content
Insights by Aasim Naseem
Insights by Aasim Naseem
Thumbnail Based MapView Annotation

Thumbnail Based MapView Annotation

AasimNaseem, May 20, 2013May 8, 2025

JPSThumbnailAnnotation is an open-source library to customize your MapKit annotation view for displaying image thumbnails along with title and subtitle.  Here is a quick screenshot from my sample project using this library.

Setup

Its free, and open source; You need to download JPSThumbnailAnnotation library from github and drag/drop the directory into your project; You will have following six files in library;

  1. JPSThumbnail.h
  2. JPSThumbnailAnnotation.h
  3. JPSThumbnailAnnotation.m
  4. JPSThumbnailAnnotationView.h
  5. JPSThumbnailAnnotationView.m
  6. JPSThumnail.m

Usage

import JPSThumbnailAnnotation.h and add the following line of code to add one annotation on your map view

[code]

JPSThumbnail *faisaMosqueAnnotation = [[JPSThumbnail alloc] init];
faisaMosqueAnnotation.image = [UIImage imageNamed:@"faisalMasjid.jpg"];
faisaMosqueAnnotation.title = kFaisalMasjidTitle;
faisaMosqueAnnotation.subtitle = kFaisalMasjidSubTitle;
faisaMosqueAnnotation.coordinate = CLLocationCoordinate2DMake(33.72976, 73.03698);
faisaMosqueAnnotation.disclosureBlock = ^{ NSLog(@"Faisal Mosque selected"); };
JPSThumbnailAnnotation *annotation = [[JPSThumbnailAnnotation alloc] initWithThumbnail:faisaMosqueAnnotation];
[mapView addAnnotation:annotation];

[/code]

You are good to go now .. You can download a sample project from here.

Flag Counter

Happy Programming .. (:

iOS iosJPSThumbnailAnnotationMapKit

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

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

Recent Posts

  • The Project Reporting: What to Communicate from Kick-off to Closure
  • What a Useful Project Status Report Should Actually Tell Leadership
  • How Project Problems Evolve: From Assumptions to Risks to Issues
  • Mitigation Plans vs Contingency Plans: What Project Managers Often Confuse
  • The Complete Enterprise RFx Lifecycle: From Business Need to Vendor Mobilization

Recent Comments

  1. reply user on What a Useful Project Status Report Should Actually Tell Leadership
  2. user ka naam on What a Useful Project Status Report Should Actually Tell Leadership
  3. WPVibe User on What a Useful Project Status Report Should Actually Tell Leadership
  4. WPVibe User on What a Useful Project Status Report Should Actually Tell Leadership
  5. Project Status Report: 5 Basic Things Leadership Actually Needs - Insights by Aasim Naseem on How Project Problems Evolve: From Assumptions to Risks to Issues

Archives

  • October 2026
  • September 2026
  • June 2025
  • May 2025
  • April 2025
  • January 2025
  • November 2024
  • April 2024
  • October 2022
  • August 2021
  • September 2020
  • May 2020
  • April 2019
  • January 2019
  • September 2018
  • July 2015
  • June 2015
  • November 2014
  • September 2014
  • April 2014
  • June 2013
  • May 2013
  • February 2013
  • January 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • March 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009

Categories

  • Agile & Frameworks
  • Amazon Kindle
  • Android
  • Aspect Oriented Programming
  • BlackBerry
  • Blog
  • Code Repositories
  • History
  • iOS
  • Islam
  • Java
  • JavaScript
  • Life Around Us
  • Linux
  • My Bookshelf
  • My Poetry
  • My Sketch Work
  • PMO & Governance
  • PMP Certification
  • Professional Growth & Certifications
  • Project Delivery Playbooks
  • Project Management
  • Random Tips
  • Saunterer Soul
  • Tendering & RFx Cycle
©2026 Insights by Aasim Naseem | WordPress Theme by SuperbThemes