[ka-Map-dev] [Bug 1664] New: [ka-Map] add support for multiple tile servers

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Feb 22 21:47:41 EST 2007


http://bugzilla.maptools.org/show_bug.cgi?id=1664

           Summary: [ka-Map] add support for multiple tile servers
           Product: ka-Map
           Version: 1.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: core
        AssignedTo: ka-map-dev at lists.maptools.org
        ReportedBy: pspencer at dmsolutions.ca


Ionut Muntean suggested the following changes to kaMap.js would enable an array of servers to be 
used in place of a single tile server.  The benefit of this is to increase the speed with which tiles are 
loaded by allowing more than the default number of simultaneous connections (4 by default) for tile 
loading.

   var idx = this._map.kaMap.tileIDX;
    if (this._map.kaMap.tileURL[idx].indexOf('?') != -1) {
        if (this._map.kaMap.tileURL[idx].slice(-1) != '&') {
            q = '&';
        } else {
            q = '';
        }
    } else {
        var src = this._map.kaMap.tileURL[idx] +
        q + 'map=' + this._map.name +
        '&t=' + t +
        '&l=' + l +
        szScale + szForce + szGroup + szImageformat + szTimestamp + szVersion;
    }
    if (img.src != src) {
        img.style.visibility = 'hidden';
        img.src = src;
    }
   idx++;
   if (idx == this._map.kaMap.tileURL.length) {
     this._map.kaMap.tileIDX = 0;
   } else {
     this._map.kaMap.tileIDX = idx;
   }

This patch is not sufficient but it gives a decent idea of how this could be accomplished.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the ka-Map-dev mailing list