[mapguide-users] URL in Legend
pagameba at gmail.com
Wed Jan 16 21:51:42 EST 2008
sorry just getting caught up on lists after Christmas (yeah, I know).
This may not work right now, the Links block location in the XML has
to move into an Extension block at the end of the application
definition. I'm not sure the parsing code has been updated to reflect
this necessity ... I've made a note of it, though, and will try to
include it in a future update.
On 16-Jan-08, at 1:54 PM, Jason Birch wrote:
> Hi Keith,
> I know this doesn't help right now, but Fusion has the concept of
> and group information built-in. The Legend widget has functions that
> are called getLayerInfoUrl and getGroupInfoUrl that are called to add
> hyperlinked images when constructing the legend.
> Look around lines 504 and 515 of this file:
> You can trace this back to the ApplicationDefinition file which builds
> the links property of the map, filling it with name/url pairs for
> and groups (around line 426)
> Which means you can just add a structure like this to the Extension
> section of the map definition in your ApplicationDefinition file
> And it _should_ get picked up by the legend.
> Two things:
> - I haven't actually tested this to make sure it works.
> - I cheated; I knew that this functionality was probably there (DMSG
> implemented it for my project) but got distracted into tracking it
> From: Campbell, Keith A
> Subject: [mapguide-users] URL in Legend
> I'd like to add a link in the legend from each layer / group to some
> information about the layer (in a new window). Has anybody done this
> successfully and if so, would you mind sharing how you did it?
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
More information about the mapguide-users