[ka-Map-users] slideBy

Paul Spencer pspencer at dmsolutions.ca
Fri Sep 30 16:04:37 EDT 2005

I'm not sure why this works :)  It probably shouldn't ... it would be  
interesting to find out what is actually causing it to work ...

slideBy -> moveBy -> checkWrap

nothing in checkWrap should actually trigger refreshing the image  

I would have thought you would have needed to do something like:

var oMap = myKaMap.getCurrentMap();
for (var i in oMap.aLayers)
     var layer = oMap.aLayers[i];
     for (var i in layer.domObj.childNodes)
         layer.setTile( layer.domObj.childNodes[i] );

I am assuming that you are passing the timestamp as part of setting  
the img src in the setTile function ...



On 30-Sep-05, at 3:38 PM, Charlton Purvis wrote:

> Hi, folks:
> I'm adding a time element to dynamically set the time-stamped  
> raster file
> that my DATA .map entry points to.  I have to hand it to you, Paul,  
> you've
> setup the ka-map .js so nicely that a js novice like me can find  
> his way
> around relatively painlessly.
> The time $_REQUEST is passed along nicely, and the correct raster  
> image
> shows up just as plain as day.  So it's time to tell the display to  
> refresh
> itself.
> I poked around and have found that slideBy(0,0) does the trick.  It  
> works
> fine, but I'm wondering if this is the best pick for what I'm  
> trying to do.
> (Imagine a sea surface temperature layer, if you will, that changes  
> daily.
> All I am doing is swapping out that layer based on the time.).
> Again, slideBy is allowing me to slide right on by w/ flying colors --
> because the SST layer is sandwiched in between other layers.  I'm just
> running it past you.
> Thanks,
> Charlton
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the ka-Map-users mailing list