<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello to all kaMap users!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>Background:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>I am trying to "port" a project, done
with Mapserver and javascript, to kaMap. The program has the
functionality to check/uncheck layers and add the data</FONT></DIV>
<DIV><FONT face=Arial size=2>dynamically from a database. This is
necessary because the data are updated continuously, e.g. vehicle
position... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The memory saving with the caching of tiles
mainly influenced my choice to move to kaMap. I lose the map
quite often with Mapserver only.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>Question:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>I have a sql database server which contains the
data for my layers (position etc.). I need to load the data into layers at
runtime and update the layers</FONT></DIV>
<DIV><FONT face=Arial size=2>continuously. The problem is that although the
javascript from init.php show that the layer is added (or at least the
correct parameters are inserted) e.g.</FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>map.addLayer(new _layer(
{ name:'taxi',visible:true,opacity:100,imageformat:'png',queryable:false,tileSource:'redraw',redrawInterval:10000,refreshInterval:5000,scales:
new Array('1','1','1','1','1','1','1','1','1')}));";</FONT> </DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>BUT: when I later do a getlayerByName('taxi') in an
AJAX called php file to load the data, which is called every 2s, the layer does
not exist.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is my layer in the mapfile:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV>#####################################################<BR># Unit layer could
be a Vehicle or Dispensing unit</DIV>
<DIV> </DIV>
<DIV>LAYER</DIV>
<DIV> NAME "taxi"<BR> GROUP
"taxi"<BR> STATUS ON<BR> DATA
"dummy"<BR> METADATA<BR>
"tile_source" "redraw"<BR>
"redraw_interval" "10000"<BR>
"refresh_interval"
"5000"<BR> END<BR> TYPE
point<BR> LABELCACHE
on<BR>
CLASS<BR>
SYMBOL
"Taxi"<BR>
SIZE
30<BR>
STYLE<BR>
COLOR -1 0 0<BR>
END<BR>
TEXT
""<BR>
LABEL<BR>
BUFFER
20<BR>
TYPE
Truetype<BR>
FONT
"arial"<BR>
SIZE
8<BR> POSITION
uc<BR> COLOR
0 0
0<BR> ANGLE
AUTO <BR> END<BR>
END<BR>END</DIV>
<DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV> </DIV>
<DIV>I tried to use KaXmlOverlay, which worked OK, but</DIV>
<DIV>-> I already have code for an overlib imagemap,</DIV>
<DIV>-> support for the overlay tooltip is lacking,</DIV>
<DIV>-> overlays can't be switched on/off with usual layer checking</DIV>
<DIV> </DIV>
<DIV>I need this to work or my motivation for using kaMap would be
nullified,</DIV>
<DIV>Any help will be much appreciated!</DIV>
<DIV> </DIV>
<DIV>Schalk Snyman</DIV></DIV></FONT></DIV></BODY></HTML>