ItemizedOverlay和覆盖类之间的差异 [英] Differences between ItemizedOverlay and Overlay class
问题描述
谁能告诉我什么时候使用叠加或当使用ItemizedOverlay类!
Can someone tell my when to use Overlay or when to use ItemizedOverlay class!
什么是这两个类之间的区别是什么?
What are differences between this two classes?
Draw方法做同样的事情?
Draw methods do the same thing?
我可以在我的项目只使用ItemizedOverlay类或者我必须使用和覆盖作为基类!
Can I use only ItemizedOverlay class in my project or I must use and Overlay as base class!
感谢
推荐答案
重叠
是一个普遍的覆盖。 ItemizedOverlay
是一个子类,它可以更容易地创建一个覆盖是一个离散的一系列地图上的标记点。所以,如果你想显示公交路线,或阴影的区域,或者类似的东西,重叠
是你想要的类。如果你想展现的餐馆的集合,或教堂,或什么的, ItemizedOverlay
和
Overlay
is a general overlay. ItemizedOverlay
is a subclass that makes it easier to create an overlay that is a discrete series of marked points on the map. So, if you are trying to show a bus route, or shade a region, or something like that, Overlay
is the class you want. If you are trying to show a collection of restaurants, or churches, or whatever, ItemizedOverlay
works.
请注意,虽然, ItemizedOverlay
是专为温和的数字点(例如,几十个)的。如果你有大量的点,你可能需要创建自己的重叠
只是出于性能的考虑。
Note, though, that ItemizedOverlay
is designed for modest numbers of points (e.g., dozens). If you have a large number of points, you may need to create your own Overlay
just for performance reasons.
这篇关于ItemizedOverlay和覆盖类之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!