[ka-Map-users] directory structure

Pg pg.navone at gmail.com
Tue Jun 13 17:31:08 EDT 2006


I think it's possible. It's a matter of many small changes to make all
references based on a common configurable base URL (I used
kaMap.server).

But before start using "kaMap.server" everywhere we should do a design
effort to distinguish what is "core" (and should be in the kaMap
tree), what is "skin/look/theme" (and should be in a separated
configurable path in kaMap tree, as the scalebar fat or thin) and what
is the "user application" (and should be in a different tree).


The patch for kaZoomer (only as an example):

125,127c125,127
<     var szThumbImg = 'images/slider_button.png';
<     var szTrackTopImg = 'images/slider_tray_top.png';
<     var szTrackBottomImg = 'images/slider_tray_bottom.png';
---
>     var szThumbImg = this.kaMap.server+'images/slider_button.png';
>     var szTrackTopImg = this.kaMap.server+'images/slider_tray_top.png';
>     var szTrackBottomImg = this.kaMap.server+'images/slider_tray_bottom.png';
170c170
<     oZoomTrack.style.backgroundImage = "url(images/slider_tray_fill.png)";
---
>     oZoomTrack.style.backgroundImage = "url("+this.kaMap.server+"images/slider_tray_fill.png)";
214c214
<     oZoomIn.innerHTML= "<img src='images/slider_button_zoomin.png'
border='0' width='17' height='17'>";
---
>     oZoomIn.innerHTML= "<img src='"+this.kaMap.server+"images/slider_button_zoomin.png' border='0' width='17' height='17'>";
226c226
<     oZoomOut.innerHTML= "<img src='images/slider_button_zoomout.png'
border='0' width='17' height='17'>";
---
>     oZoomOut.innerHTML= "<img src='"+this.kaMap.server+"images/slider_button_zoomout.png' border='0' width='17' height='17'>";


2006/6/13, Lorenzo Becchi <lorenzo at ominiverdi.com>:
> Pg, did you think that what you are suggesting can work with the
> schema I've post?
>
> I guess so, if all objects/tools are in a relative path.
> There will be some code to change, maybe you can publish your patches
> to do it faster.
>
> last word to Paul.
>
> ciao
> Lorenzo
>


More information about the ka-Map-users mailing list