Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
知道com.google.android.maps.ItemizedOverlay.populate()在这种情况下方法的等价物是OpenSteeMapViewItemizedOverlay什么吗?
com.google.android.maps.ItemizedOverlay.populate()
OpenSteeMapViewItemizedOverlay
好像没有一个。您传递给构造函数的数据已经是 OverlayItem 对象的列表。在标准的 ItemizedOverlay 中,您必须调用 populate(),以便覆盖遍历数据列表并调用 createItem() 为每条数据创建 OverlayItems,但在 OpenstreetMapViewItemizedOverlay 中,您已经创建了 OverlayItems,因此您不需要那一步。我看到的缺点是,一旦创建了叠加层,就无法更改它。