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, update, etc)<br>it creates a new layer. The layer dissapears too when you refresh the page 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><div><span class="gmail_quote">On 4/5/07,
<b class="gmail_sendername">Julien-Samuel Lacroix</b> <<a href="mailto:jlacroix@mapgears.com">jlacroix@mapgears.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;">
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 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 (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> <mailto:<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>><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></blockquote></div><br>