Changes between Version 1 and Version 2 of maestro/UserGuides/VectorLayerEditor


Ignore:
Timestamp:
May 4, 2009, 12:50:20 AM (15 years ago)
Author:
ksgeograf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • maestro/UserGuides/VectorLayerEditor

    v1 v2  
    2727A feature in MapGuide can also have a link. If the user pauses the mouse over a feature with a link, they will recieve a message that indicates they can open the link. If you type in a string like:
    2828{{{
    29 "http://osgeo.mapguide.org/"
     29'http://osgeo.mapguide.org/'
    3030}}}
    3131all features will point to the same page.
    3232If you type in the name of a column, then that columns value will be used as the link. You can build more complex links by using the + operator:
    3333{{{
    34 'URL' + "?ID=" + 'ID'
     34"URL" + '?ID=' + "ID"
    3535}}}
    3636If a feature has the values: URL = "http://osgeo.mapguide.org" and ID = "7", the link becomes "http://osgeo.mapguide.org?ID=7". A slightly more robust but less obvious way is to use the "concat" function:
    3737{{{
    38 CONCAT(CONCAT('URL', "?ID="), 'ID')
     38CONCAT(CONCAT("URL", '?ID='), "ID")
    3939}}}
    4040The two statements produce the same results, but the latter is required for some providers. If you click the "..." button at the end, you will see an incomplete editor that basically gives you a bigger text area to type in.
     
    4242The "Tooltip" field is subject to the same rules as the "Link" field, but will result in a tooltip the user can see. You may build a html fragment rather than a simple string. Such a html fragment can include an image like this:
    4343{{{
    44 "<b>Preview:</b><br/><img src='http://mapguide.osgeo.org/sites/all/themes/osgeo/logo.png?ID=" + 'ID' + "' />"
     44'<b>Preview:</b><br/><img src="http://mapguide.osgeo.org/sites/all/themes/osgeo/logo.png?ID=' + "ID" + '" />'
    4545}}}
    4646