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