PDA

View Full Version : Map Component in MVC env



dash74
17 Apr 2012, 6:23 AM
Hi,

I can correctly listen for a painted event of a Map object if that event is managed into the view.
Going in and out the container hosting the map, repeats the same event and the code associated.
In an MVC environment I won't be able to refer the map object (by it's xtype for example) and the only way to trigger the painted event is to refer to some id (like #myMap).
But going in and out the container like above, no longer trigger the event (only the first time).

My schema is :
Viewport--Card Container--Carousel--Map
|--Card Container--Other view to switch to

Thanks for cooperation

David

mitchellsimoens
17 Apr 2012, 6:37 AM
The painted event will not fire in the controller. The maprender event should fire in the controller.