Hi,<br><br>I am having some problems with two layers that use tile_source "nocache".<br><br>I am using it because these layers are respectively points sent by fishing vessels and areas. These points are sent at 5min intervals and the areas are inserted by the user. So, *i think* i can't use cache in this case.
<br><br>The problem is that the map is taking too much time to load. The points table in the database have 18.000 registers... and there will be a lot more. And there is about 18 areas.<br><br>Also, I am using variable substitution in mapfile. My points layer is something like that:
<br><br>layer<br> name "track"<br> group "Track"<br> connectiontype POSTGIS<br> connection "dbname=xxx user=xxx password=xxx host=xxx port=5432"<br> data "%data%"<br>
type line<br> status on<br> metadata<br> tile_source "nocache"<br> end<br> class<br> name "track"<br> color 0 0 0<br> end<br>end<br><br><br>When the user select some vessel, I do that using javascript:
<br><br>var map = myKaMap.getCurrentMap();<br>var track = mapa.getLayer('track');<br>track.replacementVariables = {vessel: id_vessel};<br>track.redraw();<br><br>The areas layer is using the same logic.<br><br>So, there is a way to achieve that but with better perfomance? The performance was ok before I add these two layers. Any tips?