Ticket #658 (closed defect: fixed)
Fusion: Ability to specify alternate name for feature URL
|Reported by:||tomfukushima||Owned by:|
In the MapGuide layer definition there is the ability to specify the URL for a feature with the "Url" element. Sometimes the URL can be non-descript, unwieldy, long, cryptic, or all of the previous. In the basic layout, an anchor tag (e.g., <a href="http://SomeCrypticURL">Description</a>) can be put there and it will display the descriptive text in the tool tip. For Fusion, the tooltip stops showing up altogether.
- Load the standard Sheboygan sample package ( http://download.osgeo.org/mapguide/releases/2.0.0/samples/Sheboygan.mgp)
- Load the package attached to this ticket; it will modify the Sheboygan Parcels layer so that it has a URL specified using an anchor tag.
- Open one of the flexible web layouts. The URL will have the form: http://localhost:8008/mapguide/fusion/templates/mapguide/slate/index.html?ApplicationDefinition=Library%3a%2f%2fSamples%2fSheboygan%2fFlexibleLayouts%2fSlate.ApplicationDefinition
- Zoom in until the parcel layer shows up.
Float the mouse over a parcel layer and note that no tooltip shows up anymore.
To see how the basic viewer works, try the above but open the basic layout. The URL will have the form: http://localhost:8008/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2fSamples%2fSheboygan%2fLayouts%2fSheboyganPhp.WebLayout&LOCALE=en
Sorry, but I haven't investigated how the basic layout accomplishes the above feat.