|
||||
[Chameleon] WMS layers - chameleon 1.1Schnider Markus msr@sourcepole.chMon, 29 Mar 2004 09:15:15 +0200
|
Hi Jason, I've tried the example(s). It works. Thanks But in my application I need the widget layermanager: The simplest way to include it is, in our application or mine: <cwc2 type="layermanager" visible="true" popupwidth="300" popupheight="300"/> It is shown a button, I can press it, but then the error message is shown: Fatal error: Call to a member function on a non-object in /usr/local/chameleon/htdocs/widgets/Layer.phtml on line 51 After comment the lines 51-53: //$oNewMapSession->oMap->web->set("imageurl", $_SESSION['gszTmpWebPath']); //$oNewMapSession->oMap->web->set("imagepath", $_SESSION['gszTmpImgPath']); //$oNewMapSession->oMap->selectOutputFormat($_SESSION['gszImgType']); I could see the popup with the possibilities, but with an other error, perhaps, because I have comment the three lines: Fatal error: Call to a member function on a non-object in /usr/local/chameleon/htdocs/widgets/Layer.phtml on line 344 Line 344: $aLayerOrder = $oNewMapSession->oMap->getlayersdrawingorder(); Where have I to set the variables 'imageurl', imagepath' else? ... ? I use Linux (Debian). Regards Markus Schnider On Friday 26 March 2004 20:36, Bart van den Eijnden wrote: > Hi Markus, > > try using the LegendTemplate widget for layer manager type of > functionality. You can see an example in the following application created > by DM Solutions (Chameleon 1.1 compatible): > > http://www.vz.geodan.nl/users/bart/geodan_ms4w-2003-10-31.zip > > If you want there are also Promote/Demote and Remove Layer widgets > available to use with the LegendTemplate. > > Best regards, > Bart > > On Fri, 26 Mar 2004 17:48:27 +0100, Schnider Markus <msr@sourcepole.ch> > > wrote: > > Jason, > > > > I have tried to implement the LayerManager, but I have not succeeded in > > it. > > Some errors occured (.. in line 51 or 52 or ...). > > Then I've tried to comment this lines in the code. > > After changing the Code, I could see the popup, but with errors. > > > > Is there a documentation how to use the layermanager with Chameleon 1.1? > > Or have somebody a sample application with WMS support and the > > layermanager? > > > > Thanks > > > > Markus Schnider > > > > On Friday 26 March 2004 16:49, Jason Fournier wrote: > >> Markus, > >> > >> It is possible to use WMS/WFS in Chameleon 1.1. You can add data to the > >> map either through your MapFile or through the LayerManager widget. > >> That being said, you can use either the XMLThemeLegend -or- the > >> HTMLLegend as your basis for hiding/showing WMS and/or local data > >> layers. Here is an example of an HTMLLegend template for showing a > >> combination of both local and WMS data: > >> > >> [leg_layer_html order=ascending opt_flag=14] > >> <tr> > >> <td valign="top" bgcolor="#006699"><input type="checkbox" > >> name="legendlayername[]" value="[leg_layer_name]" [if name=layer_status > >> oper=eq value=1]CHECKED[/if]> > >> </td> > >> <td bgcolor="#FFFFFF"><p class="LegendItem">[if name=wms_name > >> oper=isnull][leg_layer_name][/if][if name=wms_name oper=isset][metadata > >> name=WMS_TITLE][/if]</p> > >> </td> > >> </tr> > >> [/leg_layer_html] > >> > >> Note that the XMLThemeLegend assumes a structured layer list. For more > >> information on HTMLLegends take a look at > >> http://mapserver.gis.umn.edu/doc40/html-legend-howto.html > >> > >> Jason > >> > >> Schnider Markus wrote: > >> >Hi all, > >> > > >> >Is it possible to add WMS with chameleon 1.1? > >> >Is it at the moment only possible to add a layer with the mapfile > >> >configuration? > >> >If yes, how can I show the layer after a 'disable and enable' of the > >> > layer? All WMS layers are 'lost' in the viewer, only the > >> > >> xml-theme-legend > >> > >> > shows the entries of the WMS layers. > >> > > >> >Kind regards > >> > > >> >Markus Schnider > >> >Sourcepole AG > >> >_______________________________________________ > >> >Chameleon mailing list > >> >Chameleon@lists.maptools.org > >> >http://lists.maptools.org/mailman/listinfo/chameleon > > > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |