[mapguide-users] URL in Legend
Jason.Birch at nanaimo.ca
Wed Jan 16 13:54:39 EST 2008
I know this doesn't help right now, but Fusion has the concept of layer
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 layers
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.
- 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 down.
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?
More information about the mapguide-users