Opened 15 years ago

Closed 15 years ago

#233 closed enhancement (fixed)

Maptip and default hyperlink text

Reported by: amorsell Owned by: madair
Priority: P2 Milestone: Future
Component: Widgets Version: 1.1.1
Severity: Trivial Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

An easy enhancement that would be suitable for every case that I can think of. Ideally, this would be configured at the layer level for maptips, but I realize that this is not necessarily possible with the current architecture. Many times we don't want the full maptip hyperlink to display to the end user and can cause the maptip div to be inordinately long for large URL's. Instead, display a generic message to the end user.

For Fusion 2.0b, replace line 198

a.innerHTML = h;

with

a.innerHTML = "Click here for more information";

Change History (4)

comment:1 by amorsell, 15 years ago

The file needing the above change is:

C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\fusion\widgets\Maptip.js

comment:2 by madair, 15 years ago

Resolution: wontfix
Status: newclosed

I don't think we should do this because it appears that the content of the hyperlink can vary widely and with the fix for #265 you can now code the hyperlink in studio as:

<a href="http:/mylink.com/">Click here for more information</a>

I would prefer to leave the flexibility in the server side rather than hardocding that string in Fusion.

comment:3 by madair, 15 years ago

Resolution: wontfix
Status: closedreopened

sorry dismissed this too soon. This can be done in the case where the hyperlink is a simple URL and the actual text taken from the I18n strings bundle

comment:4 by madair, 15 years ago

Resolution: fixed
Status: reopenedclosed

fixed at rev 1929

Note: See TracTickets for help on using tickets.