View Full Version : [OPEN] Ext.Map.update() only works the first time when the map is hidden

22 Jun 2011, 5:18 PM
Sencha Touch version tested:


Platform tested against:

PlayBook 1.0.6
Chrome 12


If a Ext.Map instance is hidden and you want to update the centre point by calling update(), only the first call will change the position until you show the map.

Steps to reproduce the problem:

Load an Ext.Map instance in a tabpanel,
build a list that will send different coordinates to the hidden panel,
Click on 2 different locations while the panel is hidden
Reveal the panel

The result that was expected:

The map should be centred around the last selected location

The result that occurs instead:

The map is centred around the first selected location

Possible fix:

Workaround: Store the location and only update the map when you show it