[Chameleon] Architectural Advice
Abe Gillespie
abe.gillespie at gmail.com
Fri Apr 6 10:44:55 EDT 2007
I wish I could share the code, unfortunately it's proprietary. But
I''ll be happy to share bits and ideas.
-Abe
On 4/6/07, anthony farrant <anthony.k.farrant at gmail.com> wrote:
> Wow Abe. That's really neat. True customization.
> Indeed, I wouldn't mind having a look at the code!!
>
>
> A
>
>
> On 4/6/07, Abe Gillespie < abe.gillespie at gmail.com> wrote:
> > Hey Anthony,
> >
> > I did this about a year ago here:
> > http://netgis.washcova.com/
> > (check out the redlining tools in the "advance" tab)
> >
> > If someone hasn't gotten back to you before tomorrow then I'll have a
> > look at the code and let you know.
> >
> > -Abe
> >
> > On 4/6/07, anthony farrant <anthony.k.farrant at gmail.com> wrote:
> > > Thanks. That's exactly what I want to do.
> > > There's a mapobject function that saves the map (save()) but how to tell
> it
> > > to load
> > > it back up again.
> > >
> > > Some have done it succesfully, for example here:
> > >
> http://seamap.env.duke.edu/prod/mapservice/onlinemap/oms_main_v2.phtml
> > >
> > > --> Chameleon loads the layer and keeps it and reuses it, the layer
> > > <i>sticks</i>.
> > >
> > > The difficulty seems to be: How to initialize the layer only once and
> keep
> > > it loaded.
> > >
> > > Anthony
> > >
> > >
> > >
> > >
> > > On 4/6/07, Abe Gillespie <abe.gillespie at gmail.com> wrote:
> > > > It's been a while since I've done this but you need to save the
> > > > updated map back into Chameleon. Otherwise Chameleon drops all the
> > > > runtime added settings and layers.
> > > >
> > > > I think it's somewhere in a Chameleon class that wraps the map.
> > > > Sorry, I'm away from my Chameleon dev environment at the moment.
> > > >
> > > > -Abe
> > > >
> > > > On 4/6/07, anthony farrant <anthony.k.farrant at gmail.com > wrote:
> > > > > Yeah. Nice example. That's more or less what I'm trying to achieve.
> > > > >
> > > > > I'm playing with dynamic layers for the moment. Inserting code
> between
> > > > > the initialize and execute.
> > > > >
> > > > > $oApp = new Mapper();
> > > > > $oApp->registerSkin( 'skins/sample' );
> > > > > $oApp->CWCInitialize( $szTemplate, $szMapFile );
> > > > > if ($action_type == "1") {
> > > > >
> $oApp->addLayer("New",$points,'FF0000','point',4);
> > > > > }
> > > > > $oApp->CWCExecute();
> > > > >
> > > > > where $action_type is a GET variable and $points a coordinate array.
> > > > >
> > > > > The problem with this solution is that at each refresh of the page
> > > (zoom,
> > > > > update, etc)
> > > > > it creates a new layer. The layer dissapears too when you refresh
> the
> > > page
> > > > > without
> > > > > the action_type in the URL.
> > > > >
> > > > > What I'm seeking to do is create session layers. Is there anyway to
> do
> > > this?
> > > > >
> > > > > Thanks for your advice guys,
> > > > >
> > > > > Anthony
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 4/5/07, Julien-Samuel Lacroix <jlacroix at mapgears.com> wrote:
> > > > > > Hi,
> > > > > > I the Chameleon samples you have a lot of examples using the
> existing
> > > > > > widgets. What you are trying to do is probably what the WMSBrowser
> > > > > > widget is doing in the OGC sample. Is it possible?
> > > > > > Julien
> > > > > >
> > > > > > anthony farrant wrote:
> > > > > > > Thanks. I'll try that out, Bart.
> > > > > > >
> > > > > > > In the meanwhile I'm trying to implement dynamic layers in
> > > Chameleon.
> > > > > > > Do you know where I can start to find info about this? The doc
> on
> > > the
> > > > > WEB
> > > > > > > site doesn't seem to contain a lot.
> > > > > > > The layer would be created accroding to user input through a
> popup
> > > form.
> > > > > > > Possible?
> > > > > > > I'm pretty much familiar with PHP/Mapscript
> > > > > > > but not yet with the dynamics of Chameleon. Any links to
> tutorials
> > > are
> > > > > > > welcome.
> > > > > > >
> > > > > > > Regards,
> > > > > > >
> > > > > > > Anthony
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 4/4/07, *Bart van den Eijnden (OSGIS)* < bartvde at osgis.nl
> > > > > > > <mailto: bartvde at osgis.nl>> wrote:
> > > > > > >
> > > > > > > If you only use WMS client layers in Chameleon, this should
> be
> > > > > > > possible (if
> > > > > > > I understand your problem correctly).
> > > > > > >
> > > > > > > Best regards,
> > > > > > > Bart
> > > > > > >
> > > > > > > --
> > > > > > > Bart van den Eijnden
> > > > > > > OSGIS, Open Source GIS
> > > > > > > http://www.osgis.nl
> > > > > > >
> > > > > > >
> > > > > > > --------- Oorspronkelijk bericht --------
> > > > > > > Van: anthony farrant < anthony.k.farrant at gmail.com
> > > > > > > <mailto: anthony.k.farrant at gmail.com >>
> > > > > > > Naar: chameleon at lists.maptools.org
> > > > > > > <mailto: chameleon at lists.maptools.org > <
> > > chameleon at lists.maptools.org
> > > > > > > <mailto:chameleon at lists.maptools.org >>
> > > > > > > Onderwerp: [Chameleon] Architectural Advice
> > > > > > > Datum: 04/04/07 06:46
> > > > > > >
> > > > > > > > Hello,I'd like to use chameleon to build our GIS web
> app
> > > but
> > > > > > > have to
> > > > > > > cope with a major difficulty:Our website is physically and
> > > logically
> > > > > > > separated from our GIS server runningMapserver and Chameleon
> > > > > (different
> > > > > > > cities & networks). This implies that every change
> induced
> > > > > > > > by the user has to be tranferred to the GIS server which
> > > sends
> > > > > > > back the
> > > > > > > answer (the map).Until now I have used a custom
> PHP/Mapscript
> > > > > > > application
> > > > > > > but I would like to benefit from theChameleon framework to
> build
> > > > > > > nicer and
> > > > > > > more functional applications.
> > > > > > > > For the moment all the command logic is situated on the
> web
> > > > > > > server which
> > > > > > > handles requestsand then sends appropriate data to the GIS
> > > server to
> > > > > > > build
> > > > > > > the map. When the map returnsthe web server updates it's
> > > > > > > internal info
> > > > > > > (extent) and presents the map. All the databases
> > > > > > > > are situated on the webserver so the GIS is only used for
> map
> > > > > > > generation.
> > > > > > > I understand that this would not be possible with Chameleon
> > > since it
> > > > > > > handles
> > > > > > > both commandlogic and map generation. I was wondering if any
> of
> > > you
> > > > > > > has had
> > > > > > > to deal with such a situation before and if you
> > > > > > > > have found a lasting solution for it.CHeers,Anthony
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > _______________________________________________
> > > > > > > > Chameleon mailing list
> > > > > > > > Chameleon at lists.maptools.org
> > > > > <mailto: Chameleon at lists.maptools.org>
> > > > > > > >
> > > > >
> http://lists.maptools.org/mailman/listinfo/chameleon
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Chameleon mailing list
> > > > > > > Chameleon at lists.maptools.org
> > > > > > >
> > > http://lists.maptools.org/mailman/listinfo/chameleon
> > > > > >
> > > > > > --
> > > > > > Julien-Samuel Lacroix
> > > > > > Mapgears
> > > > > > http://www.mapgears.com/
> > > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Chameleon mailing list
> > > > > Chameleon at lists.maptools.org
> > > > >
> http://lists.maptools.org/mailman/listinfo/chameleon
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>
More information about the Chameleon
mailing list