[Chameleon] Enhanced widget pack

Paul Spencer pagameba at magma.ca
Mon Jun 14 16:34:43 EDT 2004


Joel,

The popup is provided by the LegendTemplate widget, the code for the 
popup is in chameleon/htdocs/widgets/LegendTemplate/LegendTemplate.phtml

The popup was designed to show information about WMS layers.  In 
particular, the abstract and metadata urls from WMS layers are normally 
recorded as metadata on the layer.  I don't think the widget cares if 
the layer is WMS or not, but it will look specifically for:

METADATA
   "wms_abstract" "the abstract for this layer"
   "wms_metadataurl" "not sure if this is right, check the WMS howto :)"
END

So the quick fix would be to modify your map file to add this 
information.  If you are not happy with the layout, you could also edit 
this file to get exactly what you want.

Cheers,

Paul

Joel Rivard wrote:

> Hi list,
> 
> I'm using Chameleon 1.99 beta and running the Enhanced Widget Pack as a 
> sample app.  I've added my own map file to show some local data and was 
> wondering how to add some info upon clicking on the themes in the 
> legend.  When I click on any given layer, it only gives me the "layer 
> name" and "layer title".  I'd like to add an abstract as well as an URL 
> to the Metadata.  I'm not sure if this feature has to be set in the 
> mapfile or if its an XML file that is controling this.
> 
> Can anybody point me in the right direction,
> 
> Thanks,
> 
> Joel
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



More information about the Chameleon mailing list