[mapguide-users] URL in Legend
keith.campbell at atkinsglobal.com
Thu Jan 17 03:57:20 EST 2008
Works a treat! Thanks Denis.
I'd actually tried this, using double quotes in the tag, which caused an
error. However, I just tried it again with single quotes, prompted by your
post, and it works.
Do you know if there are any other implications of commenting out the
“return false;” in the OnClick() function?
Denis Lalonde wrote:
> 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 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:
> 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.
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
View this message in context: http://www.nabble.com/URL-in-Legend-tp14877162s16610p14914643.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users