[Chameleon] OpenLayers experiment

Paul Spencer pspencer at dmsolutions.ca
Tue Oct 17 15:20:19 EDT 2006


Vinu,

you need the file jsExpander.js and jsExpander.css.  Make sure they  
go in the right place (probably with your index.phtml);

I don't seem to have them handy, perhaps someone on the list has them?

Cheers

Paul


On 17-Oct-06, at 12:38 PM, vinu wrote:

> Hi Paul,
>
> Thanks for the link.Actually I had tried the one you had posted in  
> the chameleon groups.I had pasted it below.This code works  
> perfectly but I get
> an error saying
>
>
>  Error: goExpanderManager is not defined
> Source File: http://localhost/viewer/geointegrator/index.phtml
>
> Please tell me what should I define to make the code work.
>
>
>
> <script language="JavaScript" src="jsExpander.js"></script>
> <link href="jsExpander.css" rel="stylesheet" type="text/css">
>
> Your legend template is slightly modified, in the group section add:
>
> //this is the existing line
> oGroup = new cExpander( CWCDHTML_GetLayer( '[leg_group_name]',  
> true ));
> //this is the new line
> goExpanderManager.add( oGroup );
>
> in your application template, you will also need to add:
>
> <input type="hidden" name="ExpanderStatus" value="[$ExpanderStatus| 
> $]">
>
> and right after the legend template widget you will need to add:
>
>    <cwc2 type="LegendTemplate" visible="true" embedded="true"
> template="fancy_legend.html" popupstyleresource="TextButtons"
> popupwidth="500" popupheight="400" status="false" menubar="false"/>
>
> <script language="JavaScript" type="text/javascript">
> goExpanderManager.formElement = document.forms[0].ExpanderStatus;
> goExpanderManager.initialize();
> </script>
>
>
>
> On 10/17/06, Paul Spencer <pspencer at dmsolutions.ca> wrote: http:// 
> chameleon-tiki.maptools.org/tiki-index.php?page=CustomLegendTree
>
> On 17-Oct-06, at 10:23 AM, vinu wrote:
>
> > Hi Paul,
> >
> > Do you a sample script for creating implementing a category menus
> > on the legend (layers).
> > If so please share with me.
> >
> > Thanks
> > Vinod
> >
> >
> > On 10/16/06, Paul Spencer <pspencer at dmsolutions.ca> wrote:
> > Excellent Bart ...
> >
> > I've started working with OpenLayers too and can probably help out
> > when it comes to writing a layer type for OpenLayers that can use
> > drawmap.php directly.
> >
> > This is the first step towards re-designing the ajax/jsapi mode for
> > Chameleon I think.
> >
> > Cheers
> >
> > Paul
> >
> > On 16-Oct-06, at 2:22 PM, Jason Fournier wrote:
> >
> > > Bart,
> > >
> > > Very cool - thanks for informing the list of your work.
> > >
> > > Best regards,
> > > Jason
> > >
> > >
> > > -----Original Message-----
> > > From: chameleon-bounces at lists.maptools.org
> > > [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Bart  
> van
> > > den
> > > Eijnden (OSGIS)
> > > Sent: October 16, 2006 2:17 PM
> > > To: chameleon at lists.maptools.org
> > > Subject: [Chameleon] OpenLayers experiment
> > >
> > > Hi list,
> > >
> > > I have started an experiment to integrate OpenLayers
> > > (www.openlayers.org) into Chameleon.
> > >
> > > Nothing much so far, but just thought I'd share it in this stage.
> > >
> > > It currently works with CONNECTIONTYPE WMS layers only.
> > >
> > > If you're interested, you can download from:
> > >
> > > http://www.osgis.nl/download/
> > >
> > > put the openlayers.tgz in chameleon/htdocs/common
> > >
> > > and the MapOpenLayers.tgz in the widgets dir.
> > >
> > > Example widget definition is pretty basic so far:
> > >
> > > <cwc2 type="MapOpenLayers" visible="true"/>
> > >
> > > Note a lot of Chameleon's widgets depend on MapDHTML, so they  
> won't
> > > work
> > > with this one as yet.
> > >
> > > Best regards,
> > > Bart
> > >
> > > --
> > > Bart van den Eijnden
> > > OSGIS, Open Source GIS
> > > bartvde at osgis.nl
> > > http://www.osgis.nl
> > >
> > >
> > > _______________________________________________
> > > Chameleon mailing list
> > > 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
> >
> > +-----------------------------------------------------------------+
> > |Paul Spencer                          pspencer at dmsolutions.ca     |
> > +-----------------------------------------------------------------+
> > |Chief Technology Officer                                         |
> > |DM Solutions Group Inc                 http://www.dmsolutions.ca/ |
> > +-----------------------------------------------------------------+
> >
> >
> >
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> >
>
> +-----------------------------------------------------------------+
> |Paul Spencer                           pspencer at dmsolutions.ca    |
> +-----------------------------------------------------------------+
> |Chief Technology Officer                                         |
> |DM Solutions Group Inc                 http://www.dmsolutions.ca/ |
> +-----------------------------------------------------------------+
>
>
>
>
>

+-----------------------------------------------------------------+
|Paul Spencer                          pspencer at dmsolutions.ca    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+






More information about the Chameleon mailing list