Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/100grams/Moving-MKAnnotationView
An implementation of a moving map annotation using iOS MapKit and QuartzCore.
https://github.com/100grams/Moving-MKAnnotationView
Last synced: about 1 month ago
JSON representation
An implementation of a moving map annotation using iOS MapKit and QuartzCore.
- Host: GitHub
- URL: https://github.com/100grams/Moving-MKAnnotationView
- Owner: 100grams
- Created: 2011-03-14T14:20:28.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-02-17T14:36:07.000Z (almost 9 years ago)
- Last Synced: 2024-03-26T01:27:22.933Z (9 months ago)
- Language: Objective-C
- Homepage:
- Size: 1.62 MB
- Stars: 146
- Watchers: 12
- Forks: 41
- Open Issues: 6
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
- awesome - Moving-MKAnnotationView - An implementation of a moving map annotation using iOS MapKit and QuartzCore. (etc)
- awesome - Moving-MKAnnotationView - An implementation of a moving map annotation using iOS MapKit and QuartzCore. (etc)
README
# Moving MKAnnotationView.#
This sample iPhone project uses HGMovingAnnotation and HGMovingAnnotationView to show moving annotations on a map.
![](https://github.com/100grams/Moving-MKAnnotationView/raw/master/Screenshots/HGMovingAnnotation.png)
HGMovingAnnotation
------------------This class derives from MKAnnotation and adds the capability of updating the coordinate (position) and the rotation of the annotation.
In the sample project, location updates are read from anHGMapPath
, which is a collection of MKMapPoints stored on file.The current implementation of this class reads the next point on the path every second and updates the annotation's coordinate.
HGMovingAnnotationView
----------------------This class extends MKAnnotationView by animating its position and rotation on the map. It does this by observing its HGMovingAnnotation object.
## iOS7 Compatible ##
- Updated to use XCode5 project structure, iOS7 SDK.
- Updated deployment target of sample project to iOS6. HGMovingAnnotationView + HGMovingAnnotation can be used on pre-iOS6 versions as well.
- Added capability to update and animate the rotation of the annotation view.## Minimum requirements ##
- iOS 4.3 or later (Sample project was originally created with Xcode 3.2.6, iOS SDK 4.3 GM Seed)
## License ##
Moving-MKAnnotationView is released under MIT License.
Please report bugs/issues to [email protected].
Any suggestions and/or code to help improve this source will be much appreciated.
Thanks!