I’m having a problem removing mapNewView objects from the screen when using
storyboard to change scenes. All other objects (e.g. display objects)
are removed from the screen.
I have try the the following to remove the native map objet, but still can’t.
I have declare :
local myMap
[lua]function scene:exitScene(event)
local group = self.view
if myMap then
myMap:removeSelf()
myMap = nil
end
end
if myMap then
myMap.parent:remove(myMap)
myMap = nil
end
[/lua]
please help!