ThinkGeo.com    |     Documentation    |     Premium Support

Problem to redraw the map

 


I have problems with the last version Web Edition 3.0.117 when I try to apply the method “redraw”.
 
I do a button for change the status of the zoom bar
 
--------------------------------------------------------------------
protected void ibtnzoombar_Click(object sender, ImageClickEventArgs e)
    {
        if (Map1.MapTools.PanZoomBar.Enabled)
        {
            Map1.MapTools.PanZoomBar.Enabled = false;
        }
        else
        {
            Map1.MapTools.PanZoomBar.Enabled = true;
        }
    }
---------------------------------------
But when I execute this button the map isn’t showed
 
I think that be necessary apply the method “redraw”, but it’s don’t work. The map isn’t showed.
 
---------------------------------------
protected void ibtnzoombar_Click(object sender, ImageClickEventArgs e)
    {
        if (Map1.MapTools.PanZoomBar.Enabled)
        {
            Map1.MapTools.PanZoomBar.Enabled = false;
        }
        else
        {
            Map1.MapTools.PanZoomBar.Enabled = true;
        }
 Map1.StaticOverlay.Redraw();
    }
---------------------------------------
there no error messages.
Note. I used PostGIS.
 

 


Thanks


Hélio



Helio,


You do not need to use the Redraw() method and your 1st piece of codes should work. Can you have a look at the attached sample which uses the same code as yours and works fine? I think some other places are wrong.


Ben

 



166-Post4923.zip (94.6 KB)

I have a similar problem. Even with your samples. When I push any button (even without code inside) the map dissapears. I have put it inside an update panel as you refer on the quick guide but the problem is not solved.


What am I doing wrong?



I have a similar problem. Even with your samples. When I push any button (even without code inside) the map dissapears. I have put it inside an update panel as you refer on the quick guide but the problem is not solved.


What am I doing wrong?



Ben 
  
 I tried your code and I had same problem, the map dissapears. 
  
 Helio

Ben


This problem was the version 3.0.117 with the new version 3.0.131 beta 2 this problem is resolved.
 
thanks
 
Hélio

 



Great! Let me know for any more queries.