[Users] RE map.updateSize on Scroll

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu May 20 15:19:08 CEST 2010


I also tried using this, which is more appropriate. It works with a click 
event but not with a scroll event
listeners: 
     {
      render: function(c)
      {
       c.getEl().on('scroll', function()
       {
        alert("scrolling");
       }, 
       c);
      }
     }




Steve.Toutant at inspq.qc.ca@geoext.org 
Envoyé par : users-bounces at geoext.org
20/05/2010 08:50 AM

A
users at geoext.org
cc

Objet
[Users] map.updateSize on Scroll









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
      } 
     ]
    } 

_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100520/c69df241/attachment.htm 


More information about the Users mailing list