[mapguide-users] URL in Legend
keith.campbell at atkinsglobal.com
Thu Jan 17 03:44:03 EST 2008
Thanks Jason and Paul.
I think this is a very useful feature and one for which we have a current
requirement, so it would be good if it were to be enabled in the next
Paul Spencer-5 wrote:
> 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
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
View this message in context: http://www.nabble.com/URL-in-Legend-tp14877162s16610p14914562.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users