http://github.com/johnboiles/JBDaylightOverlay
An overlay for MapKit that shows daylight for the current date and time.
-
Instantiate an MKMapView
-
Instantiate a JBDaylightOverlay
-
Call [mapView addOverlay:daylightOverlay]
-
Call [daylightOverlay startUpdating]
-
Implement MKMapViewDelegate's mapView:viewForOverlay: delegate method to return daylightOverlay
JBDaylightOverlay includes a New/Modified BSD license. This means you can use it modified or unmodified for your commerical products. However, you must include a credit mentioning John Boiles as the original author. Where you put it is up to you, but preferrably somewhere in the software itself. Perhaps something like:
Includes “JBDaylightOverlay” code by John Boiles.
You're under no obligation to share any modified / improved code, but I would appreciate it if you shared improvements via a pull request!