Reputation: 865
What is the meaning of term OverlayView in iPhone can any one give me detailed description
Upvotes: 0
Views: 1513
Reputation: 16543
Overlay provides you a layer on top of the map so that you can draw something on it(Mostly polygons, lines, points).
To know more see MKOverlay MKOverlayView Apple's Documentation
This tutorial can help you
FYI: MKOverlay will work on iOS4 and after
Upvotes: 0
Reputation: 10621
From Apple documentation:
The MKOverlay protocol defines a specific type of annotation that represents both a point and an area on a map. Overlay objects are essentially data objects that contain the geographic data needed to represent the map area. For example, overlays can take the form of common shapes such as rectangles and circles. They can also describe polygons and other complex shapes.
You use overlays to layer more sophisticated content on top of a map view. For example, you could use an overlay to show the boundaries of a national park or trace a bus route along city streets. The Map Kit framework defines several concrete classes that conform to this protocol and define standard shapes.
Because overlays are also annotations, they have similar usage pattern to annotations. When added to a map view using the addOverlay: method, that view detects whenever the overlay’s defined region intersects the visible portion of the map. At that point, the map view asks its delegate to provide a special overlay view to draw the visual representation of the overlay. If you add an overlay to a map view as an annotation instead, it is treated as an annotation with a single point.
For more info see documenation of MKOverlay
and MKOverlayView
Upvotes: 1