[ka-Map-users] directory structure

Pg pg.navone at gmail.com
Tue Jun 13 16:38:55 EDT 2006


ok for moving kaXmlOverlay wherever in the tree. Sources and examples
will need some minor changes.

In the genal discussion i've another requirement for the new version.
Often I load kaMap in a <div> of a different aplication mapped on the
same server: for example the application home is

  http://www.myserver.it/app1/index.jsp

and kaMap url is:

  http://www.myserver.it/kamap/kaMap.js

Using

  myKaMap.server = '/kamap/';

I can manage quite well the main funcions of kaMap, but there are some
limitation:

1. I have to provide some stuff in /app1/ context:
(transparentpixel.gif, images/a_pixel.gif)

2. I can use basic tools (kaNavigator and kaQuery) but not the tools
that loads images or other resources (legend, keymap, etc.).

Nevertheless I can use the scalebar and the zoomer (with some patch),
so I think is possible to make most tools working in "cross-context".
This requirement is similar to the "cross-site" use case that other
people are discussining, but without the nightmare of browsers
security constraints.

Bye


2006/6/13, Lorenzo Becchi <lorenzo at ominiverdi.com>:
> Ok
>
> I like some ideas of Justin and do trust Paul experience.
> trying to summarize:
>
> bin/ precache.php
> docs/ (as it is right now)
> htdocs/index*.html
> htdocs/css/ screen.css (maybe all css from standard UI)
> htdocs/images/ (as it is)
> htdocs/js/ (all .js from the core application. es: DHTMLapi.js,
> kaMap.js, kaTool.js, ecc.)
> htdocs/php/ (all .php form the core application. es: init.php, tile.php
> htdocs/help/ (the old page sould be re-newed)
>
> htdocs/tools/winman/ (all winman files as *.js, *.php, *.css)
> htdocs/tools/tooltip/ (all tooltip files as *.js, *.php, *.css)
> htdocs/tools/wfs/ (all wfs client files as *.js, *.php, *.css) ->
> soon available (I'll post it this week)
> htdocs/tools/XMLOverlay/ (if PG agrees)
> htdocs/tools/???/ (why not legend, keymap, zoom bars, ecc?)
>
> I insist on tools point because I would like to focus on a peculiar
> ka-map characteristic: when you develop your own application you can
> choose which tools to put in.
> iframe.html, index.html, index_winman.html, and all other
> index_....html are just customizations of all tools/widgets/
> call'emasyouwant that ka-map offers.
>
> iframe doesn't need a legend, so why put it in the core files?
> maybe somebody want to create a WFS client with tooltips and just a
> simple zoom bar; why not?
> He/she would surely appreciate to delete all files not needed.
>
> I've thought the window manager also to offer an interface where we
> can put all possible features ka-map can offer.
> then everybody can cut away the inclusion doesn't like from the index
> page and the application is ready. hope it works  ;-)
>
>
> Lorenzo
>
>
>
>
> On 12/giu/06, at 21:51, Paul Spencer wrote:
>
> > Lorenzo,
> >
> > if we come up with a way to re-organize, I can move the files on
> > the cvs server so we don't lose the history associated with the
> > files.  This would be preferable.
> >
> > I don't think we should use 'core'.  I used it in another project
> > and it confused my cvs client (CVL) because core files are ignored
> > by default.
> >
> > I agree with the general idea of restructuring into
> >
> > htdocs/css
> > htdocs/images
> > htdocs/js
> > htdocs/php
> >
> > and we could add htdocs/help
> >
> > Paul
> >
> > On 12-Jun-06, at 8:41 AM, Lorenzo Becchi wrote:
> >
> >> I've changed file disposition for window manager and tooltip systems.
> >>
> >> now each tool has its own dir inside "tools", all files needed
> >> (except index_winman and index_tooltip) are inside the relative
> >> subdir.
> >>
> >> I guess that looking at the main htdocs dir would be a headache
> >> for everybody, we should try to organize file disposition in a
> >> less "anarchic" way.
> >>
> >> My dream is to have just all index.html versions in the htdocs dir
> >> and all php, js, css and image in organized subdirs.
> >> Am I the only one?
> >>
> >> also legend, keymap, scalebar, ecc, should have its own subdir
> >> inside tools.
> >> images as they are.
> >> Core files in a "core" subdir.
> >> just a suggestion
> >>
> >> I can do the job, naturally I will not move other developers files
> >> without permission.
> >>
> >> ciao
> >> Lorenzo
> >>
> >> _______________________________________________
> >> 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/|
> > +-----------------------------------------------------------------+
> >
> >
> >
> >
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>


More information about the ka-Map-users mailing list