[Users] map.updateSize on Scroll
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Thu May 20 14:50:28 CEST 2010
Hi,
I use a geoext map panel inside a extjs panel.
If I scroll within the extjs panel the coordinates on the map are off by
the distance I scrolled. Per example, after scrolling if I want to use a
wmsgetfeatureinfo I need to click outside the map to get a feature.....
I think I should call map.updateSize(); when finished scrolling. I tryed
without success to catch a scroll event. Here is how I do it.
How should I do that please?
thanks
Steve
{
region:'east',
xtype: 'panel',
margins: '5 5 5 0',
width: 400,
title: "Statut de la veille météorologique",
collapsible: true,
autoScroll: true,
listeners:
{
'scroll': function()
{
alert("scrolling");
map.updateSize();
}
},
items:
[
{
xtype: 'gx_mappanel',
layout: 'fit',
map: map,
height: 400,
width: 400,
border: true,
center: new OpenLayers.LonLat(point.x, point.y),
zoom: 5
},
{
contentEl:'divMapAvertissements',
border: false
}
]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100520/4ca82adc/attachment.htm
More information about the Users
mailing list