Hello guys!<br><br>I´m creating a POLYGON layer in mapscript (c#) with a lot of classes like that :<br><br>layerObj _layer = new layerObj(mapaObj);<br>_layer.classitem = "geocode";<br>....<br>while (_reader.Read())
<br>{<br> _geo = Convert.ToInt32(_reader["geocode"]);<br> _city = _reader["city"].ToString();<br> <br> classObj _class = new classObj(_layer);<br> _class.name = __city;
<br> _class.template = "dummy";<br> <br> _class.setExpression(_geo.ToString());<br> <br> styleObj _style = new styleObj(_class); <br> _style.color.setRGB(_num.Next(0, 255), _num.Next(0, 255), _num.Next(0, 255));
<br>}<br><br>All works great, so I got a Themathic map (very fast - about 2secs)<br>The problem occurs when I started to aproximate to one new POLYGON (Zoomin). <br>Each zoom took more and more time (about 8-10secs) to draw the map. Its very strange...
<br>Did I miss anything?<br><br>ps.: I´m using Mapserver 4.10, windows xp and C#<br><br>[]´s<br>