[mapguide-users] URL in Legend
denlalonde at yahoo.com
Wed Jan 16 22:53:04 EST 2008
I needed this functionality too and I've got it to work by modifying the legend display name of the layer in Studio. Wrap the name with an <a> tag that calls your page or jscript function and you’ll see the name of the layer displayed as a url in the legend.
You’ll have to comment out the “return false;” in the OnClick() function of legendui.templ to enable the hyperlink.
----- Original Message ----
From: "Campbell, Keith A" <keith.campbell at atkinsglobal.com>
To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
Sent: Wednesday, January 16, 2008 5:18:02 AM
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?
This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at: http://www.atkinsglobal.com/terms_and_conditions/index.aspx.
P Consider the environment. Please don't print this e-mail unless you really need to.
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapguide-users