Hey,

>> I'm experimenting a strange behaviour and I thought I'd asked here
>> whether this is expected before submitting a bug report together with a
>> sample test case.
>>
>> I've got a WGridLayout with a WGoogleMap in it.
>>
>> Every time I insert a widget in this layout manager the google map is
>> redrawn, making me loose all the iconmarkers I've added and recentering
>> on its initial position. I saw there's a repaint method involved in the
>> call chain, when Wt::WGridLayout::addWidget is called which, according
>> to my understanding, is responsible for this map redraw.

Indeed, this is a consequence of the fact that an update to a grid
layout does not hap incrementally. We hope to address this too in the
next version together with other issues and annoyances of the layout
managers.

>> Even though every widget is asked to redraw itself during this
>> operation, I'd really expect the WGoogleMap not to loose all the data
>> associated with it (markers, zoom level, position and so on).

True this is because google map is a widget that depends on a
third-party JavaScript component. This is probably easy to fix by
keeping track of this information server-side too, so that it can be
redrawn. Which automatically also suggests a workaround which does not
require changing the existing WGoogleMap implementation.

Regards,
koen

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to