Reputation: 311
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.
self.compObj = 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(self.compObj!)
Does anybody have a solution for this?
Upvotes: 0
Views: 15