admin管理员组文章数量:1315327
I'm using whirly globe framework to show a map with different vector outlines on a globe. I could add those vectors easily with following code (from their tutorial)
...code to fill the wgVecObj
// add the outline to our view
//If you ever intend to remove these, keep track of the MaplyComponentObjects above.
selfpObj = self.theViewC?.addVectors([self.wgVecObj!], desc: self.vectorDict)
Now I want to adjust the amount of vector outlines shown depending on zoom scale and therefore want to remove those vectors again.
Their documentation says:
Used to represent the view controller resources attached to one or more visual objects.
When you add one or more objects to a view controller, you'll get a component object back. It's an opaque object (seriously, don't look inside) that we use to track various resources within the toolkit.
You can keep these around to remove the visual objects you added earlier, but that's about all the interaction you'll have with them.
But when I try to remove the object from the viewController, the vectors still stay visible (the object itself is nil).
self.theViewC?.remove(selfpObj!)
Does anybody have a solution for this?
本文标签: iosWhirly Globe Maply remove vectors from MaplyBaseViewControllerStack Overflow
版权声明:本文标题:ios - Whirly Globe Maply remove vectors from MaplyBaseViewController - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741976306a2408143.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论